@font-face {
  font-family: "Papeterie Dupont Script";
  src: url("assets/font/papeterie.woff2") format("woff2");
  font-display: swap;
  size-adjust: 72%;
}

:root {
  --paper: #F7F3EB;
  --paper-light: #FBF8F2;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.01' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .9 0 0 0 -.38'/%3E%3C/filter%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .52 0 0 0 0 .43 0 0 0 0 .3 0 0 0 -1.4 .78'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23a%29' opacity='.36'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23b%29' opacity='.33'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.01' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .9 0 0 0 -.38'/%3E%3C/filter%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .52 0 0 0 0 .43 0 0 0 0 .3 0 0 0 -1.4 .78'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23a%29' opacity='.08'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23b%29' opacity='.33'/%3E%3C/svg%3E");
  --ink: #1F1F1C;
  --olive: #6E6B4F;
  --sage: #737A55;
  --line: #DCD3C3;
  --muted: #7C7B72;
  --bordo: #6A2433;

  --script: "Papeterie Dupont Script", "Allura", cursive;
  --serif: "Cormorant Garamond", Garamond, Georgia, serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-inout: cubic-bezier(.7, 0, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--grain), var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

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

[hidden] { display: none !important; }

a { color: inherit; }

button { font: inherit; color: inherit; }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

h1, h2, p { margin: 0; font-weight: 400; }

.script { font-family: var(--script); font-weight: 400; line-height: 1.1; }

.caps {
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.italic { font-style: italic; font-size: 1.25rem; line-height: 1.45; }

.olive { color: var(--olive); }

.fill-w { display: block; width: 100%; height: auto; }

/* ---------- Yükleniyor ---------- */

main { transition: opacity .6s var(--ease); }
.is-loading main { opacity: 0; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
}

.is-loading .loader { opacity: 1; }

.loader-ring {
  width: 2.2rem;
  aspect-ratio: 1;
  border: 1.5px solid rgba(115, 122, 85, .25);
  border-top-color: var(--sage);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ---------- Ekranlar ---------- */

.screen { display: none; min-height: 100vh; min-height: 100svh; }
.screen.is-active { display: block; animation: screen-in .8s var(--ease) both; }
.screen.is-leaving { display: block; animation: screen-out .45s ease both; pointer-events: none; }

@keyframes screen-in { from { opacity: 0; } }
@keyframes screen-out { to { opacity: 0; } }

.link {
  display: inline-block;
  padding: .4rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .3s ease;
}

.link:hover { border-color: currentColor; }

.back { margin-top: 4rem; }

/* ---------- Kapalı zarf ---------- */

.screen-closed.is-active,
.screen-closed.is-leaving {
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 2rem 1.25rem;
  overflow-x: clip;
  text-align: center;
}

.screen-closed > .caps { font-size: clamp(.95rem, 3.6vw, 1.15rem); }

.closed-names {
  font-size: min(15vw, 6rem);
  white-space: nowrap;
  margin: .15em 0 -.12em;
  position: relative;
  z-index: 1;
}

.closed-envelope {
  position: relative;
  display: block;
  width: min(84vw, 500px);
  aspect-ratio: 799 / 606;
  translate: -1.3% 0;
  cursor: pointer;
  animation: nudge 4s ease-in-out 1.5s infinite;
}

.closed-envelope-img { width: 100%; height: auto; filter: drop-shadow(0 12px 14px rgba(40, 44, 30, .18)); }

.closed-mono {
  position: absolute;
  left: 51.3%;
  top: 51%;
  /* Papeterie'nin eğik harfleri kutunun sağına taşar */
  translate: calc(-50% - .18em) -50%;
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .12);
  letter-spacing: -.04em;
}

.closed-lily {
  position: absolute;
  left: 61%;
  top: 40%;
  width: 42%;
  max-width: none;
  pointer-events: none;
  rotate: -6deg;
}

.closed-hint { margin-top: 2rem; font-size: clamp(.95rem, 3.6vw, 1.1rem); animation: breathe 2.6s ease-in-out infinite; }

@keyframes nudge {
  0%, 82%, 100% { transform: none; }
  86% { transform: rotate(-1.6deg); }
  90% { transform: rotate(1.4deg); }
  94% { transform: rotate(-.8deg); }
}

@keyframes breathe {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

.screen-closed.is-leaving .closed-envelope { animation: lift .5s var(--ease-inout) both; }

@keyframes lift { to { transform: translateY(-14px) scale(1.04); } }

/* ---------- Açık zarf sahnesi ---------- */

.screen-open { padding-top: 0; }

.scene {
  position: relative;
  width: min(100%, 750px);
  margin: 0 auto;
  aspect-ratio: 390 / 545;
  container-type: inline-size;
  /* Zarfın görünen kısmı referansta merkezin 4.2 birim sağında */
  --ox: -4.2;
}

.piece {
  --u: calc(100cqw / 390);
  position: absolute;
  left: calc((var(--x) + var(--ox, 0)) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  max-width: none;
  rotate: calc(var(--r, 0) * 1deg);
}

.crop {
  height: calc(var(--h) * var(--u));
  overflow: hidden;
}

.crop > img {
  position: absolute;
  left: calc(var(--ix) * var(--u));
  top: calc(var(--iy) * var(--u));
  width: calc(var(--iw) * var(--u));
  max-width: none;
}

.flip { scale: -1 1; }

.screen-open.is-active .piece {
  animation: pop .9s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 120ms + 100ms);
}

@keyframes pop {
  from { opacity: 0; transform: scale(.92); }
}

.screen-open.is-active .card,
.screen-open.is-active .polaroid {
  animation-name: rise;
  animation-duration: 1.4s;
  animation-delay: calc(var(--d, 0) * 180ms + 450ms);
}

@keyframes rise {
  from { transform: translateY(32%); }
}

.screen-open.is-active .seal { animation-name: stamp; animation-delay: 1.5s; }

@keyframes stamp {
  from { opacity: 0; transform: scale(1.6); }
  60% { opacity: 1; transform: scale(.94); }
}

.sway { transform-origin: 50% 0; }
.screen-open.is-active .sway { animation: pop .9s var(--ease) both, sway 6s ease-in-out 2s infinite alternate; animation-delay: calc(var(--d, 0) * 120ms + 100ms), 2s; }

@keyframes sway {
  from { rotate: -2deg; }
  to { rotate: 2deg; }
}

/* Kart */
.card-frame { position: absolute; left: 9.26%; top: 4.74%; width: 86.15%; max-width: none; }

.card-title,
.card-info {
  position: absolute;
  translate: -50% -50%;
  text-align: center;
  white-space: nowrap;
}

.card-title {
  left: 52.3%;
  top: 47%;
  font-size: calc(34 * var(--u));
  line-height: calc(27 * var(--u));
}

.dotless { clip-path: inset(.3em -.2em -.2em -.2em); }

.cedilla { position: relative; }

/* Papeterie "is" ligatürüne göre konumlu; font birimleri ×0.72 */
.cedilla::after {
  content: "";
  position: absolute;
  left: .216em;
  top: .64em;
  width: .216em;
  height: .216em;
  background: currentColor;
  -webkit-mask: var(--cedilla) no-repeat 0 0 / 100% 100%;
  mask: var(--cedilla) no-repeat 0 0 / 100% 100%;
  --cedilla: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%27300%20-50%20300%20300%27%3E%3Cpath%20transform%3D%27scale%281%2C-1%29%27%20d%3D%27M410%2010C484-10%20526-46%20518-90C510-132%20454-154%20390-138C376-134%20380-118%20392-119C424-123%20444-108%20444-87C444-62%20428-42%20388-14Z%27/%3E%3C/svg%3E");
}

.card-info {
  left: 52.3%;
  top: 63.5%;
  font-size: calc(8 * var(--u));
  font-weight: 700;
  letter-spacing: calc(2 * var(--u));
  line-height: calc(11.46 * var(--u));
}

/* Mühür */
.seal-mono {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  overflow: hidden;
}

.seal-a,
.seal-f {
  position: absolute;
  left: 50%;
  top: 50%;
  font-family: var(--script);
  font-size: calc(20 * var(--u));
  line-height: 1;
  color: #A89770;
  text-shadow: 0 1px 0 rgba(255, 240, 200, .45), 0 -1px 0 rgba(60, 40, 10, .3);
}

.seal-a { translate: calc(-50% - 5 * var(--u)) calc(-50% - 2.5 * var(--u)); }
.seal-f { translate: calc(-50% + 5 * var(--u)) calc(-50% + 3.5 * var(--u)); }

/* Polaroid */
.polaroid-photo { position: absolute; object-fit: cover; }
.polaroid-photo.p1 { left: 11.05%; top: 6.96%; width: 83.06%; height: 69.84%; }
.polaroid-photo.p2 { left: 9.96%; top: 6.82%; width: 85.65%; height: 70.08%; }
.polaroid > .fill-w { position: relative; }

/* Plak */
.vinyl {
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.vinyl-shadow { position: absolute; width: 107.92%; left: -6.9%; top: -.9%; max-width: none; rotate: -19.12deg; }
.vinyl-disc { position: absolute; inset: 0; }

.vinyl-label {
  position: absolute;
  left: 13.37%;
  top: 13.37%;
  width: 73.27%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #EDEAE0;
  color: var(--ink);
  font-family: var(--script);
  font-size: calc(27 * var(--u));
  line-height: 1;
}

.vinyl-a,
.vinyl-f { position: absolute; translate: -50% -50%; }
.vinyl-a { left: 31%; top: 38%; }
.vinyl-f { left: 69%; top: 62%; }

.vinyl-heart {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24%;
  translate: -50% -50%;
  fill: #141414;
}

.vinyl-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(78, 78, 78, .6);
}

.vinyl-play::before {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  translate: -50% -50%;
  border-style: solid;
  border-width: calc(5 * var(--u)) 0 calc(5 * var(--u)) calc(8 * var(--u));
  border-color: transparent transparent transparent #fff;
}

.screen-open.is-active .vinyl-disc { animation: spin 20s linear infinite; }

.vinyl.is-playing .vinyl-play::before {
  left: 50%;
  width: calc(8 * var(--u));
  height: calc(10 * var(--u));
  border: 0;
  border-left: calc(3 * var(--u)) solid #fff;
  border-right: calc(3 * var(--u)) solid #fff;
}

@keyframes spin { to { rotate: 360deg; } }

.vinyl-hint {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.vinyl-hint text {
  font-family: var(--serif);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.2px;
  fill: #fff;
}

/* ---------- Detaylar ---------- */

.details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1.75rem;
  width: min(100% - 2.5rem, 520px);
  margin: 0 auto;
  padding: .75rem 0 3.5rem;
  text-align: center;
}

.details > * { width: 100%; }

.details-title { font-size: clamp(3rem, 16vw, 6rem); white-space: nowrap; }
.details-title + .caps { margin-top: -.75rem; font-size: .95rem; }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.45rem, 2.2vw, .8rem);
}

.countdown div {
  position: relative;
  display: grid;
  justify-items: center;
  gap: .35rem;
  padding: clamp(.8rem, 3.5vw, 1.1rem) 0 clamp(.7rem, 3vw, .95rem);
  background: var(--paper-light);
  box-shadow: 0 12px 22px -16px rgba(60, 45, 25, .45), 0 1px 2px rgba(60, 45, 25, .1);
}

.countdown div::before {
  content: "";
  position: absolute;
  inset: .3rem;
  border: 1px solid var(--line);
  pointer-events: none;
}

.countdown span {
  font-weight: 500;
  font-size: clamp(2.1rem, 10vw, 3.2rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--bordo);
}

.countdown small { font-size: clamp(.62rem, 2.6vw, .75rem); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--sage);
}

.flourish::before,
.flourish::after { content: ""; width: 4.5rem; height: 1px; background: currentColor; opacity: .55; }
.flourish i { width: .42rem; height: .42rem; border: 1px solid currentColor; rotate: 45deg; }

.countdown-done { font-family: var(--script); font-size: 3rem; }

.lead { font-size: clamp(1.05rem, 5.2vw, 1.45rem); }

.nowrap { white-space: nowrap; }

.info-block {
  position: relative;
  margin-top: 3.4rem;
  padding: 2.6rem clamp(.55rem, 3vw, 1.4rem) .5rem;
  background: var(--grain), var(--paper-light);
  box-shadow: 0 20px 38px -24px rgba(60, 45, 25, .45), 0 1px 3px rgba(60, 45, 25, .12);
}

.info-block::before {
  content: "";
  position: absolute;
  inset: .45rem;
  border: 1px solid var(--line);
  pointer-events: none;
}

.info-seal {
  --u: calc(4.75rem / 61);
  position: absolute;
  left: 50%;
  top: 0;
  width: 4.75rem;
  translate: -50% -50%;
  rotate: 6deg;
  filter: drop-shadow(0 4px 5px rgba(60, 45, 20, .3));
}

.info-seal img { width: 100%; }

.info-seal { z-index: 1; }

.info-flowers {
  position: absolute;
  left: 50%;
  top: 0;
  width: 10rem;
  translate: -50% -58%;
  pointer-events: none;
  filter: drop-shadow(0 4px 5px rgba(60, 50, 30, .22));
}

.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.info > div { display: grid; gap: .35rem; align-content: start; padding: 1.3rem clamp(.4rem, 2vw, .75rem); }
.info > div + div { border-left: 1px solid var(--line); }
.info > .info-wide { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }

.info dt { color: var(--olive); font-size: .9rem; }
.info dd { margin: 0; font-size: clamp(1.1rem, 4.4vw, 1.4rem); line-height: 1.4; }

.info-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.info-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3.4rem;
  padding: .15rem .5rem 0;
  border: 0;
  background: none;
  color: var(--bordo);
  font: inherit;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color .3s ease;
}

.info-link + .info-link { border-left: 1px solid var(--line); }

@media (max-width: 380px) {
  .info-link { gap: .35rem; padding-inline: .2rem; font-size: .7rem; letter-spacing: .1em; white-space: nowrap; }
}
.info-link::after { content: "→"; letter-spacing: 0; transition: translate .3s var(--ease); }
.info-link:hover { color: var(--ink); }
.info-link:hover::after { translate: .25rem 0; }

.memories { display: grid; gap: 1.25rem; }

.memory {
  position: relative;
  display: grid;
  grid-template-columns: 44% minmax(0, 1fr);
  grid-template-areas: "art body";
  align-items: center;
  min-height: 11.5rem;
  padding: 1.25rem 1rem;
  background: var(--grain-dark), radial-gradient(120% 140% at 30% 20%, #74293A, #5F1F2B);
  box-shadow: 0 14px 28px -16px rgba(60, 18, 26, .55), 0 1px 3px rgba(60, 18, 26, .18);
  color: #F4ECDF;
  text-decoration: none;
  transition: translate .5s var(--ease), box-shadow .5s var(--ease);
}

.memory::before {
  content: "";
  position: absolute;
  inset: .45rem;
  border: 1px solid rgba(244, 236, 223, .38);
  pointer-events: none;
}

.memory-flip { grid-template-columns: minmax(0, 1fr) 44%; grid-template-areas: "body art"; }

/* Geniş ekranda polaroidler kartın altından taşmasın */
@media (min-width: 480px) { .memory { min-height: 13.75rem; } }

.memory:hover { translate: 0 -3px; box-shadow: 0 20px 34px -16px rgba(60, 18, 26, .6), 0 1px 3px rgba(60, 18, 26, .18); }

.memory-body {
  grid-area: body;
  position: relative;
  display: grid;
  justify-items: center;
  gap: .2rem;
  text-align: center;
}

.memory-kicker { color: rgba(244, 236, 223, .78); font-size: .68rem; letter-spacing: .18em; }
.memory-title { font-size: clamp(1.8rem, 9vw, 2.7rem); line-height: 1.1; white-space: nowrap; }
.memory-text { font-style: italic; font-size: 1rem; line-height: 1.25; color: rgba(244, 236, 223, .8); }

.memory-cta {
  margin-top: .55rem;
  padding-bottom: .15rem;
  border-bottom: 1px solid rgba(244, 236, 223, .55);
  color: #F4ECDF;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
}

.memory-cta::after { content: " →"; letter-spacing: 0; }

.memory-art { grid-area: art; position: relative; align-self: stretch; min-height: 9rem; container-type: inline-size; }

.memory-art img { position: absolute; max-width: none; }

.art-zarf {
  left: 50%;
  top: 50%;
  width: 96%;
  translate: -50% -50%;
  rotate: -7deg;
  filter: drop-shadow(0 6px 8px rgba(40, 40, 20, .22));
}

.art-zambak { right: -14%; bottom: -14%; width: 62%; rotate: -12deg; filter: drop-shadow(0 3px 4px rgba(40, 40, 20, .2)); }

.mini-polaroid {
  position: absolute;
  z-index: 1;
  width: 54%;
  padding: 5% 5% 17%;
  background: #FFFEFB;
  box-shadow: 0 6px 12px -4px rgba(40, 35, 20, .3);
}

.mini-polaroid img { position: static; width: 100%; aspect-ratio: 1; object-fit: cover; }

.mp-1 { left: 4%; top: 6%; rotate: -9deg; }
.mp-2 { right: 2%; top: 16%; rotate: 7deg; }

.art-gul {
  z-index: 2;
  left: 52cqw;
  top: calc(16% + 59cqw);
  width: 92%;
  translate: -50% -50%;
  rotate: -78deg;
  filter: drop-shadow(0 3px 4px rgba(40, 20, 20, .3));
}

.art-zambak,
.art-gul,
.mini-polaroid { transition: rotate .6s var(--ease); }

.memory:hover .art-zambak { rotate: -18deg; }
.memory:hover .art-gul { rotate: -81deg; }
.memory:hover .mp-1 { rotate: -12deg; }
.memory:hover .mp-2 { rotate: 10deg; }

.sign { font-size: clamp(2.8rem, 15vw, 5rem); white-space: nowrap; margin-top: 1rem; }

.details .back { width: auto; margin-top: 2rem; }

/* ---------- Mesaj ve galeri sayfaları ---------- */

.screen-page.is-active,
.screen-page.is-leaving {
  display: grid;
  justify-items: center;
  align-content: start;
  max-width: 460px;
  margin: 0 auto;
  padding: clamp(3rem, 10svh, 6rem) 1.5rem 3rem;
  text-align: center;
}

.screen-gallery.is-active,
.screen-gallery.is-leaving { max-width: 960px; }

.screen-gallery .form,
.screen-gallery > .italic { max-width: 420px; }

.page-title { font-size: clamp(3.6rem, 16vw, 4.6rem); color: var(--olive); margin-bottom: 1.25rem; }

.page-note { margin-top: 1rem; font-size: .95rem; letter-spacing: .12em; }

.page-link { margin-top: 1.5rem; font-style: italic; font-size: 1.2rem; border-bottom-color: rgba(31, 31, 28, .3); }

.booth-card {
  position: relative;
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  gap: clamp(.8rem, 4vw, 1.25rem);
  align-items: center;
  width: 100%;
  max-width: 420px;
  margin-top: 2.5rem;
  padding: 1.4rem clamp(.9rem, 4vw, 1.2rem);
  background: var(--grain-dark), radial-gradient(120% 140% at 30% 20%, #74293A, #5F1F2B);
  color: #F4ECDF;
  text-decoration: none;
  box-shadow: 0 14px 28px -16px rgba(60, 18, 26, .55), 0 1px 3px rgba(60, 18, 26, .18);
  transition: translate .5s var(--ease), box-shadow .5s var(--ease);
}

.booth-card::before {
  content: "";
  position: absolute;
  inset: .45rem;
  border: 1px solid rgba(244, 236, 223, .38);
  pointer-events: none;
}

.booth-card:hover { translate: 0 -3px; box-shadow: 0 20px 34px -16px rgba(60, 18, 26, .6), 0 1px 3px rgba(60, 18, 26, .18); }

.booth-preview {
  position: relative;
  rotate: -7deg;
  transition: rotate .6s var(--ease);
}

.booth-preview img { width: 112%; height: auto; max-width: none; margin-left: -4%; filter: drop-shadow(0 8px 10px rgba(30, 8, 12, .35)); }

.booth-card:hover .booth-preview { rotate: -3deg; }

.booth-body { display: grid; justify-items: center; gap: .2rem; text-align: center; }

.booth-kicker { font-size: .68rem; letter-spacing: .18em; color: rgba(244, 236, 223, .78); }
.booth-title { font-size: clamp(1.8rem, 9vw, 2.7rem); line-height: 1.1; white-space: nowrap; }
.booth-text { font-style: italic; font-size: 1rem; line-height: 1.25; color: rgba(244, 236, 223, .8); text-wrap: balance; }

.booth-cta {
  margin-top: .55rem;
  padding-bottom: .15rem;
  border-bottom: 1px solid rgba(244, 236, 223, .55);
  color: #F4ECDF;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  white-space: nowrap;
}

.booth-cta::after { content: " →"; letter-spacing: 0; }

.form { display: grid; gap: 1.5rem; width: 100%; margin-top: 2.5rem; text-align: left; }

.field { display: grid; gap: .45rem; margin: 0; padding: 0; border: 0; min-width: 0; }

.field > span { padding: 0; font-style: italic; font-size: 1rem; }

.field input[type="text"],
.field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-light);
  color: var(--ink);
  font: 400 1.15rem/1.4 var(--serif);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .3s ease;
}

.field textarea { resize: vertical; }

.field input:focus,
.field textarea:focus { outline: none; border-color: var(--olive); }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #B5574A; }

.form-error { color: #A8483B; font-style: italic; margin-top: -.5rem; }

.form-status { min-height: 1.5em; margin-top: -.5rem; font-style: italic; color: var(--olive); text-align: center; }

.btn-solid {
  min-height: 3.2rem;
  border: 0;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font-style: italic;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background-color .3s ease;
}

.btn-solid:hover { background: #2A2A26; }
.btn-solid:disabled { opacity: .5; cursor: default; }

.form-done { margin-top: 2.5rem; outline: none; }
.form-done .script { font-size: 3.6rem; margin-bottom: .75rem; }
.form-done .link { margin-top: 1.25rem; }

/* Galeri */

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 2.5rem;
}

.filter {
  padding: .45rem 1.1rem .35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-light);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.filter.is-active { background: var(--sage); border-color: var(--sage); color: #fff; }

@media (max-width: 440px) {
  .filters { gap: .35rem; }
  .filter { padding-inline: .7rem; font-size: .72rem; letter-spacing: .08em; }
}

@media (max-width: 340px) {
  .filter { padding-inline: .55rem; font-size: .66rem; letter-spacing: .06em; }
}

.gallery-empty { margin-top: 2rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr));
  gap: .75rem;
  width: 100%;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #E9E1D3;
  cursor: zoom-in;
  text-align: left;
}

.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery .is-fotokabin img { aspect-ratio: 9 / 16; }

.gallery-name {
  display: block;
  padding: .4rem .2rem .2rem;
  font-style: italic;
  font-size: .95rem;
  color: var(--muted);
}

.lightbox {
  width: min(100vw - 2rem, 720px);
  max-height: calc(100svh - 2rem);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop { background: rgba(17, 18, 15, .88); }

.lightbox-img { width: 100%; max-height: calc(100svh - 6rem); object-fit: contain; }

.lightbox-name { margin-top: .6rem; color: #fff; font-style: italic; text-align: center; }

.lightbox-close {
  position: absolute;
  top: -.5rem;
  right: -.5rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  cursor: pointer;
}

.lightbox-close svg { width: 1.4rem; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; }

/* ---------- Fotoğraf kabini ---------- */

.screen-camera.is-active,
.screen-camera.is-leaving {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .18 0 0 0 0 .1 0 0 0 -1.5 .8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.5'/%3E%3C/svg%3E"),
    radial-gradient(120% 80% at 50% 35%, #646B4D, #4E543B);
  color: #fff;
}

.cam-stage {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  padding: max(env(safe-area-inset-top), .75rem) .75rem 0;
}

.cam-canvas,
.cam-result {
  grid-area: 1 / 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 6px;
  background: #F7F3EB;
  box-shadow: 0 14px 34px rgba(24, 27, 16, .35), 0 2px 6px rgba(24, 27, 16, .2);
}

.cam-result { aspect-ratio: 9 / 16; object-fit: contain; }

.cam-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cam-count {
  grid-area: 1 / 1;
  font-family: var(--serif);
  font-size: 7rem;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
  pointer-events: none;
}

.cam-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.cam-flash.is-on { animation: flash .5s ease-out; }

@keyframes flash { from { opacity: .85; } }

/* Kartta fotoğraf penceresinin ortası yüksekliğin %39'unda */
.cam-intro {
  grid-area: 1 / 1;
  position: relative;
  top: -9%;
  display: grid;
  justify-items: center;
  gap: 1rem;
  width: min(100%, 340px);
  padding: 1.5rem;
  text-align: center;
}

.cam-intro-title { font-size: clamp(2.8rem, 14vw, 4.4rem); }

.cam-intro .italic { color: rgba(255, 255, 255, .85); }

.cam-gallery-link { font-style: italic; font-size: 1.15rem; border-bottom-color: rgba(255, 255, 255, .35); }

.cam-error { color: #F3D9C9; font-size: 1rem; line-height: 1.45; }

.cam-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.4rem;
  padding: .2rem 1rem 0;
  border: 1.5px solid rgba(255, 255, 255, .85);
  background: transparent;
  color: #fff;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}

.cam-btn-light { border-color: #F6F1E6; background: #F6F1E6; color: var(--ink); }
.cam-btn:disabled { opacity: .55; cursor: default; }

.cam-bar {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 1rem 1.25rem max(env(safe-area-inset-bottom), 1.25rem);
}

.cam-after {
  display: grid;
  justify-items: center;
  gap: .55rem;
  padding-top: .75rem;
  width: min(100%, 420px);
  margin: 0 auto;
}

.cam-after[hidden],
.cam-bar[hidden] { display: none !important; }

.cam-name {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: italic 400 1.1rem/1.4 var(--serif);
  text-align: center;
}

.cam-name::placeholder { color: rgba(255, 255, 255, .6); }
.cam-name:focus { outline: none; border-color: #fff; }
.cam-name[aria-invalid="true"] { border-color: #F3B2A0; }

.cam-status { min-height: 1.4em; font-style: italic; font-size: 1rem; color: rgba(255, 255, 255, .8); }

#cam-controls { align-items: flex-start; }

.cam-shutter {
  position: relative;
  width: 5rem;
  aspect-ratio: 1;
  padding: 0;
  border: 1.5px solid rgba(246, 241, 230, .9);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: transform .15s ease;
}

.cam-shutter:active { transform: scale(.9); }
.cam-shutter:disabled { cursor: default; }

/* muhur.webp'de mühür gövdesi görselin %82'si, merkezi hafif sol üstte */
.cam-seal {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: url("assets/img/muhur.webp") calc(50% - 2px) calc(50% + 2.5px) / 122% no-repeat;
}

.cam-seal-a,
.cam-seal-f {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 1.65rem;
  line-height: 1;
  color: #A89770;
  text-shadow: 0 1px 0 rgba(255, 240, 200, .45), 0 -1px 0 rgba(60, 40, 10, .3);
}

.cam-seal-a { translate: calc(-50% - 6.5px) calc(-50% - 3.3px); }
.cam-seal-f { translate: calc(-50% + 6.5px) calc(-50% + 4.6px); }

.cam-tool {
  display: grid;
  justify-items: center;
  gap: .5rem;
  padding: .95rem 0 0;
  border: 0;
  background: none;
  color: #F6F1E6;
  cursor: pointer;
}

.cam-icon {
  display: grid;
  place-items: center;
  width: 3.1rem;
  aspect-ratio: 1;
  border: 1px solid rgba(246, 241, 230, .55);
  border-radius: 50%;
  background: rgba(246, 241, 230, .08);
  transition: background .2s ease;
}

.cam-tool:hover .cam-icon { background: rgba(246, 241, 230, .18); }

.cam-label { font-size: .62rem; letter-spacing: .2em; color: rgba(246, 241, 230, .85); }

.cam-icon svg,
.cam-close svg {
  width: 1.4rem;
  fill: none;
  stroke: #F6F1E6;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cam-close {
  position: absolute;
  top: max(env(safe-area-inset-top), .75rem);
  right: .75rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  aspect-ratio: 1;
  margin: .5rem;
  border-radius: 50%;
  background: rgba(246, 241, 230, .94);
  box-shadow: 0 4px 12px rgba(24, 27, 16, .25);
}

.cam-close svg { stroke: var(--ink); }

.cam-after .link { font-style: italic; font-size: 1.15rem; border-bottom-color: rgba(255, 255, 255, .35); }

/* ---------- Kaydırınca belirme ---------- */

.js .reveal { opacity: 0; translate: 0 14px; transition: opacity 1s var(--ease), translate 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
}
