:root {
  --ink: #2b1d14;
  --ink-soft: #6b5546;
  --cream: #fbf5ea;
  --paper: #fffaf1;
  --terracotta: #b8532a;
  --terracotta-deep: #8f3a1b;
  --gold: #d6a24a;
  --shadow: 0 30px 60px -20px rgba(40, 20, 8, .55), 0 10px 20px -10px rgba(40, 20, 8, .35);
  --px: 0; /* parallax x, -1..1 */
  --py: 0; /* parallax y, -1..1 */
  --plate-size: min(380px, 34vw);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: #2a1810;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Parallax scene ---------- */
.scene { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.layer {
  position: absolute; inset: -6%;
  background-size: cover; background-position: center;
  will-change: transform;
}
[data-depth] {
  /* --d derinlik değeri app.js tarafından data-depth'ten atanır */
  transform: translate3d(calc(var(--px) * var(--d, .3) * -28px), calc(var(--py) * var(--d, .3) * -20px), 0);
  transition: transform .25s cubic-bezier(.2,.7,.3,1);
}
.layer-wall {
  background-image:
    url("assets/scene/buffet-bg.jpg"),
    radial-gradient(ellipse at 20% 15%, rgba(255, 196, 120, .55), transparent 40%),
    radial-gradient(ellipse at 80% 10%, rgba(255, 170, 90, .45), transparent 35%),
    linear-gradient(180deg, #4a2c1c 0%, #2c1810 70%);
  filter: blur(5px) brightness(.72) saturate(1.1);
}
.layer-lights {
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 214, 150, .35) 0 2%, transparent 7%),
    radial-gradient(circle at 34% 8%, rgba(255, 214, 150, .28) 0 1.5%, transparent 6%),
    radial-gradient(circle at 63% 14%, rgba(255, 214, 150, .3) 0 2%, transparent 7%),
    radial-gradient(circle at 88% 22%, rgba(255, 214, 150, .25) 0 1.5%, transparent 6%);
  mix-blend-mode: screen;
  animation: flicker 6s ease-in-out infinite;
}
@keyframes flicker { 50% { opacity: .75; } }
.layer-table {
  top: 30%;
  background-image:
    url("assets/scene/wood.jpg"),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 140px),
    linear-gradient(180deg, #6b4128, #3e2416);
  background-size: cover;
  box-shadow: 0 -30px 60px rgba(0,0,0,.45);
  border-top-left-radius: 50% 40px;
  border-top-right-radius: 50% 40px;
}
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, transparent 45%, rgba(20, 8, 2, .55) 100%);
}

/* ---------- Screens ---------- */
.screen {
  position: fixed; inset: 0; z-index: 1;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.screen.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }

.eyebrow {
  font-family: "Caveat", cursive; font-size: 1.5rem; color: var(--terracotta);
  margin: 0 0 .2rem;
}
h1, h2 { font-family: "Fraunces", serif; font-weight: 800; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(3rem, 8vw, 5.5rem); line-height: .95; }
h1 em { font-style: italic; font-weight: 400; color: var(--terracotta); }

.btn {
  border: 0; cursor: pointer; border-radius: 999px;
  padding: .95rem 1.6rem; font-weight: 700; font-size: 1rem;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(180deg, var(--terracotta), var(--terracotta-deep));
  color: #fff; box-shadow: 0 10px 22px -8px rgba(143, 58, 27, .8), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { box-shadow: 0 14px 28px -8px rgba(143, 58, 27, .9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-share {
  background: linear-gradient(180deg, #f0c56a, var(--gold)); color: var(--ink);
  box-shadow: 0 10px 22px -10px rgba(156, 107, 28, .8), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-ghost { background: rgba(43, 29, 20, .08); }
.btn-ghost:hover { background: rgba(43, 29, 20, .14); }

/* ---------- Welcome ---------- */
.welcome-card, .result-card {
  width: min(560px, calc(100vw - 32px));
  padding: clamp(28px, 5vw, 52px);
  background:
    linear-gradient(180deg, rgba(255,250,241,.96), rgba(251,245,234,.94));
  border-radius: 28px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}
.welcome-card::before {
  /* menü kartı dikiş çizgisi */
  content: ""; position: absolute; inset: 12px; border-radius: 20px;
  border: 1px dashed rgba(184, 83, 42, .35); pointer-events: none;
}
.lead { color: var(--ink-soft); font-size: 1.1rem; line-height: 1.5; margin: 1.2rem auto 1.8rem; max-width: 34ch; }
#nameForm { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
#nameInput {
  flex: 1 1 220px; min-width: 0;
  padding: .95rem 1.2rem; border-radius: 999px;
  border: 1.5px solid rgba(43, 29, 20, .15); background: #fff;
  font: inherit; font-size: 1.05rem; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
#nameInput:focus { border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(184, 83, 42, .15); }

/* ---------- Buffet ---------- */
.screen-buffet { place-items: stretch; display: grid; grid-template-rows: auto 1fr; }
.buffet-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 18px clamp(16px, 3vw, 40px) 0;
  color: var(--cream);
}
.buffet-head .eyebrow { color: var(--gold); }
.buffet-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); text-shadow: 0 2px 12px rgba(0,0,0,.4); }

.points { display: flex; align-items: center; gap: 12px; }
.points-label { font-size: 1rem; white-space: nowrap; }
.points-label b { font-family: "Fraunces", serif; font-size: 1.6rem; color: var(--gold); }
.coins { display: flex; gap: 4px; }
.coin {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #e2b24f 45%, #9c6b1c 100%);
  box-shadow: inset 0 -2px 3px rgba(0,0,0,.3), 0 2px 4px rgba(0,0,0,.4);
  transition: transform .35s cubic-bezier(.5,-0.5,.5,1.5), opacity .35s;
}
.coin.spent { transform: translateY(-10px) scale(.4); opacity: .15; }

.buffet-stage {
  display: grid; grid-template-columns: 1fr auto;
  gap: clamp(12px, 2vw, 32px);
  padding: 8px clamp(16px, 3vw, 40px) 20px;
  min-height: 0;
}

.buffet-table {
  align-self: end;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 1.6vw, 22px) clamp(8px, 1.4vw, 18px);
  padding: clamp(18px, 2.4vw, 32px);
  max-height: 100%; overflow-y: auto; overflow-x: hidden;
  /* büfe masası: keten örtü */
  background-image:
    url("assets/scene/table.jpg"),
    repeating-linear-gradient(90deg, rgba(120, 90, 60, .05) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(120, 90, 60, .05) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 40% 20%, #f7efe2, #e6d7bf);
  background-size: cover;
  border-radius: 22px;
  box-shadow: var(--shadow), inset 0 0 60px rgba(120, 80, 40, .18);
  scrollbar-width: none;
}
.buffet-table::-webkit-scrollbar { display: none; }

.tray {
  position: relative;
  border: 0; background: none; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: transparent;
}
.dish {
  position: relative; width: 100%; aspect-ratio: 1;
  border-radius: 50%;
  transition: transform .3s cubic-bezier(.2,.8,.3,1.2), filter .3s;
}
.dish::after {
  /* masa üstüne düşen gölge */
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -6%; height: 22%;
  background: radial-gradient(ellipse, rgba(60, 35, 15, .45), transparent 70%);
  z-index: -1; filter: blur(4px);
}
.dish img, .dish canvas {
  width: 100%; height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 8px 10px rgba(60, 30, 10, .35));
}
.tray:hover .dish, .tray:focus-visible .dish { transform: translateY(-6px) scale(1.04); }
.tray:active .dish { transform: translateY(-2px) scale(.98); }
.tray:focus-visible { outline: none; }
.tray:focus-visible .tent { box-shadow: 0 0 0 3px var(--terracotta); }
.tray.is-locked { cursor: not-allowed; }
.tray.is-locked .dish { filter: saturate(.7) brightness(.94); opacity: .82; transform: none; }
.tray.is-locked .tent { opacity: .6; }
.tray.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* katlanmış isim kartı (tent card) */
.tent {
  margin-top: -6%;
  position: relative; z-index: 2;
  background: linear-gradient(180deg, #fffdf8 0%, #f4ead9 100%);
  border-radius: 6px;
  padding: 6px 10px 7px;
  box-shadow: 0 6px 10px -4px rgba(60, 30, 10, .45), inset 0 -2px 0 rgba(0,0,0,.05);
  text-align: center;
  min-width: 78%;
  transform: perspective(300px) rotateX(-8deg);
}
.tent-name { display: block; font-family: "Fraunces", serif; font-weight: 600; font-size: clamp(.72rem, 1vw, .92rem); line-height: 1.15; }
.tent-price {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 3px;
  font-size: .78rem; font-weight: 700; color: var(--terracotta-deep);
}
.tent-price i {
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #e2b24f 45%, #9c6b1c 100%);
}
.tray .count {
  position: absolute; top: 4%; right: 6%; z-index: 3;
  min-width: 26px; height: 26px; border-radius: 13px; padding: 0 7px;
  display: grid; place-items: center;
  background: var(--terracotta); color: #fff; font-weight: 700; font-size: .85rem;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
  transform: scale(0); transition: transform .3s cubic-bezier(.5,1.8,.5,1);
}
.tray .count.on { transform: scale(1); }

/* ---------- My plate ---------- */
.my-plate-wrap {
  align-self: end;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: var(--plate-size);
}
.my-plate {
  position: relative; width: var(--plate-size); aspect-ratio: 1;
  border-radius: 50%;
  filter: drop-shadow(0 26px 30px rgba(30, 12, 4, .55));
}
.plate-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.plate-img + .plate-fallback { display: none; }
.plate-fallback {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 52%, #f1ece4 58%, #fbf8f3 63%, #ffffff 68%, #e9e2d6 71%, #fdfbf7 74%, #e4dccd 100%);
  box-shadow: inset 0 -8px 16px rgba(0,0,0,.08), inset 0 6px 10px rgba(255,255,255,.9);
}
.plate-fallback::after {
  /* sır parlaması */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(ellipse at 30% 22%, rgba(255,255,255,.9), transparent 30%);
}
.plate-items { position: absolute; inset: 0; }
.portion {
  position: absolute; width: 34%; aspect-ratio: 1;
  translate: -50% -50%;
  border: 0; padding: 0; background: none; cursor: pointer;
  transition: left .5s cubic-bezier(.3,1.3,.4,1), top .5s cubic-bezier(.3,1.3,.4,1), scale .2s;
  filter: drop-shadow(0 4px 4px rgba(60, 30, 10, .3));
}
.portion:hover { scale: 1.07; }
.portion img, .portion canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.portion.leaving { animation: leave .35s forwards; }
@keyframes leave { to { scale: .2; opacity: 0; } }
.plate-hint { margin: 0; color: rgba(251, 245, 234, .85); text-align: center; font-size: .88rem; line-height: 1.4; }
.my-plate.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.03) translateY(3px); } }

.flyer {
  position: fixed; z-index: 50; pointer-events: none;
  filter: drop-shadow(0 20px 18px rgba(30, 12, 4, .45));
}
.flyer img, .flyer canvas { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Result ---------- */
.result-card { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; }
.result-card h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.result-plate {
  width: min(340px, 70vw); aspect-ratio: 1; margin: 18px auto;
  position: relative;
  filter: drop-shadow(0 20px 24px rgba(30, 12, 4, .35));
}
.result-plate .portion { cursor: default; }
.result-plate .portion:hover { scale: 1; }
.result-list {
  list-style: none; padding: 0; margin: 0 auto 22px; max-width: 360px; text-align: left;
}
.result-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 2px; border-bottom: 1px dashed rgba(43, 29, 20, .15);
}
.result-list li:last-child { border-bottom: 0; font-weight: 700; }
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (min-width: 820px) {
  /* geniş ekranda tabak solda, döküm sağda: kart kaydırma gerektirmez */
  .result-card {
    width: min(920px, calc(100vw - 48px));
    display: grid; grid-template-columns: auto 1fr; column-gap: 40px; align-items: center;
    text-align: left;
  }
  .result-card > * { grid-column: 2; }
  .result-card .result-plate { grid-column: 1; grid-row: 1 / span 7; width: min(380px, 60vh); margin: 0; }
  .result-card .result-list { margin: 14px 0 18px; max-width: none; columns: 2; column-gap: 28px; font-size: .9rem; }
  .result-card .result-list li { padding: 5px 2px; break-inside: avoid; }
  .result-card .result-actions { justify-content: flex-start; }
  .result-card .result-chips { justify-content: flex-start; }
}

/* ---------- Sahneler: ekrana göre arka plan ---------- */
.layer-wall { transition: filter .8s ease; }
.layer-table { transition: opacity .8s ease, transform .25s cubic-bezier(.2,.7,.3,1); }
body[data-scene="hall"] .layer-wall { background-image: url("assets/scene/hall.jpg"), linear-gradient(180deg, #4a2c1c, #2c1810); filter: blur(2px) brightness(.62) saturate(1.1); }
body[data-scene="salon"] .layer-wall { background-image: url("assets/scene/salon.jpg"), linear-gradient(180deg, #4a2c1c, #2c1810); filter: blur(3px) brightness(.6) saturate(1.1); }
body[data-scene="door"] .layer-wall { background-image: url("assets/scene/door.jpg"), linear-gradient(180deg, #2a2a2e, #111); filter: brightness(.85) saturate(.9); }
body[data-scene="hall"] .layer-table,
body[data-scene="salon"] .layer-table,
body[data-scene="door"] .layer-table { opacity: 0; }
body[data-scene="door"] .layer-lights { opacity: 0; }

/* ---------- Seçim ekranları (terlik, içecek) ---------- */
.screen-pick { overflow-y: auto; padding: 24px 16px; }
.pick-wrap { width: min(1100px, 100%); }
.pick-head {
  display: flex; align-items: center; gap: 20px;
  color: var(--cream); margin-bottom: clamp(18px, 3vw, 36px);
}
.pick-head .eyebrow { color: var(--gold); }
.pick-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.pick-lead { margin: .4rem 0 0; color: rgba(251,245,234,.85); max-width: 52ch; line-height: 1.45; }
.host-avatar {
  width: clamp(72px, 9vw, 110px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; flex: none;
  border: 3px solid rgba(214,162,74,.9); box-shadow: 0 10px 24px rgba(0,0,0,.45);
}
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); }
.pick {
  border: 0; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 16px 20px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,250,241,.95), rgba(244,234,217,.92));
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2,.8,.3,1.2), box-shadow .3s, opacity .4s, filter .4s;
}
.pick-img { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.pick-img img {
  width: 92%; height: 92%; object-fit: contain;
  filter: drop-shadow(0 14px 14px rgba(60,30,10,.35));
  transition: transform .4s cubic-bezier(.2,.8,.3,1.3);
}
.pick b { font-family: "Fraunces", serif; font-size: 1.15rem; }
.pick small { color: var(--ink-soft); line-height: 1.35; font-size: .88rem; }
.pick:hover, .pick:focus-visible { transform: translateY(-8px); outline: none; }
.pick:hover .pick-img img, .pick:focus-visible .pick-img img { transform: scale(1.06) rotate(-3deg); }
.pick:focus-visible { box-shadow: 0 0 0 3px var(--terracotta), var(--shadow); }
.pick-grid.chosen .pick:not(.is-picked) { opacity: .35; filter: blur(1px) grayscale(.4); transform: scale(.96); }
.pick.is-picked { transform: translateY(-14px) scale(1.05); box-shadow: 0 0 0 3px var(--gold), var(--shadow); }
.pick.is-picked .pick-img img { transform: scale(1.12) rotate(0); }

/* ---------- Dedikodu ---------- */
.screen-gossip { padding: 20px 16px; }
.gossip-wrap { width: min(860px, 100%); display: flex; flex-direction: column; gap: 18px; }
.gossip-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.room { display: flex; }
.room-p {
  width: 52px; height: 52px; border-radius: 50%; margin-right: -10px; position: relative;
  border: 3px solid rgba(255,250,241,.85); overflow: visible;
  transition: transform .3s, border-color .3s;
}
.room-p img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.room-p.speaking { transform: translateY(-6px) scale(1.1); border-color: var(--gold); z-index: 2; }
.room-p.target { border-color: #e0483a; }
.room-p.target::after {
  content: "!"; position: absolute; right: -4px; top: -6px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: #e0483a; color: #fff; font-weight: 800; font-size: .8rem;
  animation: bob 1s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-3px); } }
.risk { color: var(--cream); min-width: 220px; flex: 0 1 300px; }
.risk span { font-size: .9rem; }
.risk b { font-family: "Fraunces", serif; font-size: 1.3rem; color: var(--gold); }
.risk-bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; margin-top: 6px; }
.risk-bar i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, #8fbf5a, #e2b24f);
  transition: width .6s cubic-bezier(.3,1.4,.5,1), background .4s;
}
.risk-bar i[data-level="mid"] { background: linear-gradient(90deg, #e2b24f, #e07b3a); }
.risk-bar i[data-level="high"] { background: linear-gradient(90deg, #e07b3a, #d1342a); }
.risk.pulse { animation: pulse .5s; }
@keyframes pulse { 30% { transform: scale(1.06); } }

.gossip-card {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 30px); align-items: start;
  padding: clamp(18px, 3vw, 30px);
  background: linear-gradient(180deg, rgba(255,250,241,.97), rgba(251,245,234,.95));
  border-radius: 28px; box-shadow: var(--shadow);
}
.gossip-card.enter { animation: cardIn .5s cubic-bezier(.2,.8,.3,1.1); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.g-avatar {
  width: clamp(96px, 16vw, 170px); aspect-ratio: 1; border-radius: 22px; object-fit: cover;
  box-shadow: 0 14px 24px -10px rgba(40,20,8,.6);
}
.g-meta { margin: 0 0 8px; }
.g-meta b { font-family: "Fraunces", serif; font-size: 1.35rem; }
.g-meta small { color: var(--terracotta); font-weight: 600; margin-left: 6px; }
.bubble {
  position: relative; margin: 0;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem); line-height: 1.5;
  min-height: 4.5em;
}
.bubble::before { content: "“"; position: absolute; left: -.55em; top: -.25em; font-family: "Fraunces", serif; font-size: 2.6em; color: rgba(184,83,42,.25); }
.g-about { margin: 12px 0 0; font-size: .92rem; color: var(--ink-soft); }
.g-about b { color: #c0392b; }
.g-choices { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.g-choice {
  text-align: left; border: 0; cursor: pointer;
  padding: 14px 20px; border-radius: 18px;
  background: rgba(255,250,241,.92); font-size: 1rem; font-weight: 500;
  box-shadow: 0 8px 18px -10px rgba(0,0,0,.5);
  transition: transform .15s, background .2s;
}
.g-choice:hover, .g-choice:focus-visible { transform: translateX(6px); background: #fff; outline: none; }
.g-choice[data-r="yay"]:hover, .g-choice[data-r="ters"]:hover { background: #fde9e4; }
.g-room { margin: 0 0 4px; color: var(--cream); font-style: italic; text-align: center; }
.g-choices .btn { align-self: center; }
.g-progress { display: flex; gap: 8px; justify-content: center; }
.g-progress i { width: 34px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); }
.g-progress i.done { background: var(--gold); }
.g-progress i.now { background: var(--cream); }
.screen-gossip.caught .gossip-card { animation: caught .6s; box-shadow: 0 0 0 4px #d1342a, var(--shadow); }
@keyframes caught { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }

/* ---------- Final ---------- */
.result-story { color: var(--ink-soft); line-height: 1.55; margin: .6rem 0 .8rem; }
.result-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px 4px 4px; border-radius: 999px;
  background: rgba(43,29,20,.07); font-size: .85rem; font-weight: 600;
}
.chip img { width: 30px; height: 30px; object-fit: contain; }
.chip-risk { padding-left: 12px; color: var(--terracotta-deep); }
.result-card.is-fail h2 { color: #b3261e; }
.result-card.is-fail .eyebrow { color: #b3261e; }
.result-card.is-fail .result-plate { filter: grayscale(.5) drop-shadow(0 20px 24px rgba(30, 12, 4, .35)); opacity: .8; }

@media (max-width: 860px) {
  .pick-grid { grid-template-columns: repeat(2, 1fr); }
  .pick small { display: none; }
  .gossip-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .bubble::before { display: none; }
}

/* ---------- Tarifler ---------- */
.screen-recipes { place-items: start center; overflow-y: auto; padding: 24px 16px 40px; }
.recipes-wrap {
  width: min(1180px, 100%);
  background: linear-gradient(180deg, rgba(255,250,241,.97), rgba(251,245,234,.96));
  border-radius: 28px; box-shadow: var(--shadow);
  padding: clamp(20px, 3.5vw, 44px);
}
.recipes-head { position: relative; margin-bottom: 26px; }
.btn-back { padding: .55rem 1rem; font-size: .9rem; margin-bottom: 14px; }
.recipes-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); max-width: 22ch; }
.recipes-lead { color: var(--ink-soft); margin: .6rem 0 1.2rem; max-width: 60ch; line-height: 1.5; }
.guests { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 500; }
.guest-options { display: flex; gap: 6px; background: rgba(43,29,20,.06); padding: 4px; border-radius: 999px; }
.guest-opt {
  border: 0; background: none; cursor: pointer; border-radius: 999px;
  padding: .45rem .95rem; font-weight: 700; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.guest-opt.on { background: #fff; color: var(--terracotta-deep); box-shadow: 0 2px 6px rgba(43,29,20,.15); }

.recipes-grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 28px; align-items: start; }
.shopping { position: sticky; top: 0; }
.shopping-card {
  background: #fff; border-radius: 18px; padding: 20px 20px 16px;
  box-shadow: 0 10px 24px -14px rgba(43,29,20,.35);
  /* not defteri çizgileri */
  background-image: repeating-linear-gradient(180deg, transparent 0 35px, rgba(184,83,42,.08) 35px 36px);
}
.shopping-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.shopping h3, .prep-group h3 { font-family: "Fraunces", serif; font-size: 1.3rem; margin: 0; }
.btn-link { border: 0; background: none; color: var(--terracotta); font-weight: 700; cursor: pointer; padding: 4px; }
.btn-link:hover { text-decoration: underline; }
.shopping-list { list-style: none; margin: 0; padding: 0; max-height: 58vh; overflow-y: auto; }
.shopping-list li { padding: 7px 0; border-bottom: 1px dashed rgba(43,29,20,.1); }
.shopping-list label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.shopping-list input { accent-color: var(--terracotta); width: 17px; height: 17px; flex: none; }
.sh-name { flex: 1; }
.sh-qty { font-weight: 700; white-space: nowrap; font-size: .92rem; }
.shopping-list input:checked ~ span { text-decoration: line-through; opacity: .45; }
.shopping-list small { display: block; margin-left: 27px; color: var(--ink-soft); font-size: .75rem; }
.pantry { margin: 12px 0 0; font-size: .85rem; color: var(--ink-soft); line-height: 1.45; }

.prep-group { margin-bottom: 22px; }
.prep-group h3 { margin-bottom: 10px; }
.prep-group h3 span { font-family: "Caveat", cursive; font-weight: 600; color: var(--terracotta); font-size: 1.25rem; margin-left: 6px; }
.recipe {
  background: #fff; border-radius: 18px; margin-bottom: 10px;
  box-shadow: 0 8px 20px -14px rgba(43,29,20,.4);
  overflow: hidden;
}
.recipe summary {
  list-style: none; display: flex; align-items: center; gap: 14px;
  padding: 10px 18px 10px 10px; cursor: pointer;
}
.recipe summary::-webkit-details-marker { display: none; }
.recipe summary img { width: 64px; height: 64px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 4px rgba(60,30,10,.25)); }
.r-title { flex: 1; display: flex; flex-direction: column; }
.r-title b { font-family: "Fraunces", serif; font-size: 1.12rem; }
.r-title small { color: var(--ink-soft); }
.r-chev { width: 10px; height: 10px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); rotate: 45deg; transition: rotate .2s; }
.recipe[open] .r-chev { rotate: 225deg; }
.r-body { display: grid; grid-template-columns: minmax(200px, 1fr) 1.4fr; gap: 26px; padding: 6px 22px 22px; }
.r-body h4 { margin: 0 0 8px; font-size: .95rem; }
.r-body h4 small { font-weight: 500; color: var(--terracotta); margin-left: 4px; }
.r-ing { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.r-ing li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dotted rgba(43,29,20,.12); }
.r-ing li span:last-child { font-weight: 600; white-space: nowrap; }
.r-steps { margin: 0 0 14px; padding-left: 1.2rem; font-size: .95rem; line-height: 1.5; }
.r-steps li { margin-bottom: 6px; }
.r-link {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px; border-radius: 12px; text-decoration: none;
  background: rgba(184,83,42,.08); color: var(--terracotta-deep); font-weight: 700;
  transition: background .2s;
}
.r-link:hover { background: rgba(184,83,42,.15); }
.r-link span { font-weight: 500; font-size: .85rem; color: var(--ink-soft); }
.credit { margin: 20px 0 0; font-size: .8rem; color: var(--ink-soft); }
.credit a { color: var(--terracotta-deep); }

@media (max-width: 860px) {
  .recipes-grid { grid-template-columns: 1fr; }
  .shopping { position: static; }
  .shopping-list { max-height: none; }
  .r-body { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  translate: -50% 20px; opacity: 0;
  background: rgba(43, 29, 20, .92); color: var(--cream);
  padding: 12px 20px; border-radius: 999px; font-weight: 500;
  transition: opacity .3s, translate .3s;
  pointer-events: none;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- Responsive ---------- */
@media (min-width: 1280px) and (max-aspect-ratio: 2.6/1) {
  /* geniş ekranda 14 tepsi 2 sıraya sığar */
  .buffet-table { grid-template-columns: repeat(7, 1fr); }
}
@media (max-width: 1100px) {
  .buffet-table { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 820px) {
  :root { --plate-size: min(230px, 56vw); }
  .buffet-stage { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding-bottom: 12px; }
  .buffet-table { grid-template-columns: repeat(3, 1fr); align-self: stretch; padding-bottom: 20px; }
  .my-plate-wrap { justify-self: center; flex-direction: row; width: auto; gap: 14px; }
  .my-plate-wrap .plate-hint { display: none; }
  .points-label { font-size: .85rem; }
  .coins { display: none; }
}

/* ---------- Seviyeler ---------- */
.level-steps {
  list-style: none; padding: 0; margin: 0 0 1.6rem;
  display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
}
.level-steps li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px 4px 4px; border-radius: 999px;
  background: rgba(43,29,20,.07); font-size: .85rem; font-weight: 600; color: var(--ink-soft);
}
.level-steps b {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(43,29,20,.12); font-size: .75rem;
}
.level-steps li.now { background: rgba(184,83,42,.14); color: var(--terracotta-deep); }
.level-steps li.now b { background: var(--terracotta); color: #fff; }
.level-steps li.done b { background: var(--gold); color: #fff; }

.level-card {
  width: min(520px, calc(100vw - 32px));
  padding: clamp(28px, 5vw, 48px);
  background: linear-gradient(180deg, rgba(255,250,241,.97), rgba(251,245,234,.95));
  border-radius: 28px; box-shadow: var(--shadow); text-align: center;
}
.screen-level.is-active .level-card { animation: cardIn .6s cubic-bezier(.2,.8,.3,1.1); }
.level-num { margin: 0 0 .4rem; display: flex; flex-direction: column; align-items: center; }
.level-num span { font-family: "Caveat", cursive; font-size: 1.5rem; color: var(--terracotta); line-height: 1; }
.level-num b {
  font-family: "Fraunces", serif; font-size: clamp(4rem, 12vw, 6rem); line-height: 1;
  color: var(--terracotta-deep);
}
.level-card h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.level-text { color: var(--ink-soft); line-height: 1.55; margin: .8rem auto 1.4rem; max-width: 40ch; }

.level-pill {
  position: fixed; top: 12px; left: 50%; translate: -50% 0; z-index: 40;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(43,29,20,.78); color: var(--cream); font-size: .85rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px; pointer-events: none; white-space: nowrap;
  backdrop-filter: blur(6px);
}
.level-pill[hidden] { display: none; }
.level-pill b { padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .78rem; }
.screen-buffet .buffet-head, .screen-pick .pick-wrap, .screen-gossip .gossip-wrap { margin-top: 28px; }

/* ---------- Kahve ---------- */
.pick-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 860px; margin: 0 auto; }
.pick-img { position: relative; }
.sugar {
  position: absolute; right: 8%; bottom: 8%;
  display: flex; gap: 4px; padding: 6px 8px; border-radius: 10px;
  background: rgba(43,29,20,.82); box-shadow: 0 4px 10px rgba(60,30,10,.25);
}
.sugar i {
  width: 14px; height: 14px; border-radius: 3px;
  background: linear-gradient(135deg, #fff, #e6ddcd); box-shadow: inset 0 -2px 0 rgba(43,29,20,.18);
}
.sugar em { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--cream); }

/* ---------- Uyum ---------- */
.meters { display: flex; gap: 18px; flex: 0 1 520px; flex-wrap: wrap; }
.meters .risk { flex: 1 1 200px; min-width: 0; }
.uyum { color: var(--cream); flex: 1 1 160px; }
.uyum span { font-size: .9rem; }
.uyum b { font-family: "Fraunces", serif; font-size: 1.3rem; color: #9fd06a; }
.uyum-bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; margin-top: 6px; }
.uyum-bar i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, #6fae4a, #b6dc7a);
  transition: width .6s cubic-bezier(.3,1.4,.5,1);
}
/* tepki sonrası pop-up */
.g-pop-backdrop {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center; padding: 16px;
  background: rgba(20, 8, 2, .5);
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.g-pop {
  width: min(440px, 100%);
  padding: 26px 26px 22px; border-radius: 26px; text-align: center;
  background: linear-gradient(180deg, #fffaf1, #f8efe0);
  box-shadow: var(--shadow), 0 0 0 3px rgba(214,162,74,.6);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: popIn .45s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes popIn { from { opacity: 0; transform: translateY(18px) scale(.9); } }
.g-pop-av {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold); box-shadow: 0 8px 18px -8px rgba(40,20,8,.6);
}
.g-pop-text { margin: 0; font-family: "Fraunces", serif; font-size: 1.2rem; line-height: 1.45; }
.g-pop-deltas { display: flex; gap: 8px; }
.g-pop .delta {
  padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  background: rgba(95,150,60,.15); color: #3f7a24;
}
.g-pop .delta.neg { background: rgba(209,52,42,.12); color: #b3261e; }

/* ---------- Kura ---------- */
.screen-kura { overflow-y: auto; padding: 24px 16px; place-items: start center; }
.kura-card {
  width: min(640px, 100%); margin-top: 28px;
  padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(255,250,241,.97), rgba(251,245,234,.95));
  border-radius: 28px; box-shadow: var(--shadow); text-align: center;
}
.kura-card h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.kura-lead { color: var(--ink-soft); line-height: 1.5; margin: .6rem auto 1rem; max-width: 46ch; }
.bowl {
  position: relative; width: 170px; height: 90px; margin: 0 auto 18px;
  border-radius: 0 0 90px 90px / 0 0 80px 80px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(210,228,240,.5));
  box-shadow: inset 0 -10px 20px rgba(120,150,170,.35), inset 0 4px 0 rgba(255,255,255,.8), 0 14px 20px -10px rgba(40,20,8,.45);
  border-top: 3px solid rgba(255,255,255,.9);
}
.bowl::before {
  /* kâsenin ağız kenarı */
  content: ""; position: absolute; left: -6px; right: -6px; top: -10px; height: 18px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.85); background: rgba(200,220,235,.25);
}
.bowl i {
  position: absolute; width: 34px; height: 18px; border-radius: 3px;
  background: #fffdf6; box-shadow: 0 2px 4px rgba(60,30,10,.25);
  transition: transform .5s, opacity .5s;
}
.bowl i:nth-child(1) { left: 22px;  top: 12px; rotate: -18deg; }
.bowl i:nth-child(2) { left: 52px;  top: 4px;  rotate: 12deg; }
.bowl i:nth-child(3) { left: 84px;  top: 10px; rotate: -6deg; }
.bowl i:nth-child(4) { left: 112px; top: 6px;  rotate: 22deg; }
.bowl i:nth-child(5) { left: 40px;  top: 30px; rotate: 6deg; }
.bowl i:nth-child(6) { left: 92px;  top: 30px; rotate: -14deg; }
.screen-kura.is-active .bowl:not(.empty) { animation: swirl 1.8s ease-in-out infinite; }
@keyframes swirl { 25% { rotate: -3deg; } 75% { rotate: 3deg; } }
.bowl.empty i { opacity: 0; transform: translateY(-20px); }

.slips {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.slip {
  position: relative; min-height: 104px; border-radius: 12px;
  background: #fffdf6; box-shadow: 0 8px 16px -10px rgba(40,20,8,.5);
  display: grid; place-items: center; overflow: hidden;
}
.slip-fold, .slip-open { grid-area: 1 / 1; transition: opacity .4s, transform .5s cubic-bezier(.2,.8,.3,1.3); }
.slip-fold {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: "Caveat", cursive; font-size: 1.3rem; color: rgba(43,29,20,.35);
  background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(184,83,42,.08) 22px 23px);
}
.slip-open {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px;
  opacity: 0; transform: scale(.7) rotate(-6deg);
}
.slip-open b { font-family: "Fraunces", serif; font-size: 1rem; color: var(--terracotta-deep); }
.slip-open span:last-child { font-size: .85rem; font-weight: 600; }
.slip-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.slip-me {
  display: grid; place-items: center; font-family: "Fraunces", serif; font-weight: 800;
  background: var(--terracotta); color: #fff;
}
.slip.open .slip-fold { opacity: 0; transform: scaleY(0); }
.slip.open .slip-open { opacity: 1; transform: none; }
.slip.mine.open { box-shadow: 0 0 0 3px var(--gold), 0 12px 24px -10px rgba(40,20,8,.6); animation: pop .6s; }
@keyframes pop { 40% { transform: scale(1.08); } }

/* ---------- Sonuç: ay rozeti ---------- */
.month-badge {
  margin: 0 auto 6px; width: 92px; height: 92px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #e2b24f 50%, #9c6b1c 100%);
  box-shadow: inset 0 -4px 8px rgba(0,0,0,.25), 0 10px 20px -8px rgba(60,30,10,.6);
  color: var(--ink);
}
.month-badge[hidden] { display: none; }
.month-badge b { font-family: "Fraunces", serif; font-size: 2.2rem; line-height: 1; }
.month-badge span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
@media (min-width: 820px) {
  .result-card .month-badge { margin: 0 0 6px; }
}
@media (max-width: 860px) {
  .pick-grid-3 { gap: 10px; }
  .pick-grid-3 .pick { padding: 12px 8px 14px; }
  .pick-grid-3 .pick b { font-size: 1rem; }
}
@media (max-width: 520px) {
  .slips { grid-template-columns: repeat(2, 1fr); }
  .meters { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01s !important; }
}
