/* AFC PDKS V3.19.11: yalnızca karşılama ekranını etkileyen stil kuralları */
html.afc-envelope-open { overflow: hidden; }
.afc-envelope-overlay, .afc-envelope-overlay * { box-sizing: border-box; }
.afc-envelope-overlay {
  position: fixed !important;
  inset: 0;
  z-index: 2147483000;
  isolation: isolate;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: radial-gradient(ellipse at 50% 37%, #fffdfa 0%, #fff7f5 60%, #fbeaed 100%);
  color: #73485c;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.afc-envelope-shell {
  width: min(100%, 440px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: auto;
  padding: max(26px, env(safe-area-inset-top)) 24px max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  text-align: center;
  position: relative;
}
.afc-envelope-brand {display:grid;gap:9px; margin:13px auto 0; align-items:center;justify-items:center;position:relative;z-index:2;}
.afc-envelope-corporate {font-size:11px;letter-spacing:2.5px;color:#ab6c82;font-weight:850;white-space:nowrap;}
.afc-envelope-subtitle {font-family:Georgia,serif;font-size:21px;font-style:italic;color:#7c4961;}
.afc-envelope-stage {
  position:relative;
  flex: 1 1 390px;
  min-height: 365px;
  width:100%;
  display:grid;
  place-items:center;
  isolation:isolate;
}
.afc-envelope-ornament {position:absolute;font-size:25px;opacity:.37;pointer-events:none;z-index:0;}
.afc-env-o1 {top:8%;left:3%;}
.afc-env-o2 {right:5%;top:17%;font-size:21px;}
.afc-env-o3 {bottom:11%;left:8%;font-size:18px;}
.afc-envelope-envelope {
  width:200px;
  height:140px;
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
  perspective:600px;
  filter: drop-shadow(0 13px 13px rgba(159,70,97,.21));
  animation:afcEnvHide .65s 2.55s ease forwards;
}
.afc-env-back{position:absolute;inset:0;background:#e4a5b6;border-radius:10px;}
.afc-env-paper{
  position:absolute;bottom:7px;left:13px;right:13px;height:114px;
  display:flex;justify-content:center;align-items:flex-start;padding-top:15px;
  color:#ba5977;background:#fffefa;border-radius:8px;font-size:24px;
  animation:afcEnvPaper 1.04s 1.6s ease-in-out forwards;
}
.afc-env-front{
  position:absolute;inset:0;z-index:2;border-radius:0 0 10px 10px;
  background:linear-gradient(160deg,#f3becb,#e099b0);
  clip-path:polygon(0 0,50% 46%,100% 0,100% 100%,0 100%);
}
.afc-env-flap{
  position:absolute;inset:0;z-index:3;
  background:#f2b8c8;
  clip-path:polygon(0 0,100% 0,50% 65%);
  transform-origin:center top;
  animation:afcEnvFlap .72s 1s ease forwards;
}
.afc-env-seal{
  position:absolute;z-index:4;left:50%;top:49%;transform:translate(-50%,-50%);
  width:38px;height:38px;background:#b8597b;color:white;
  border-radius:50%;display:grid;place-items:center;box-shadow:0 3px 7px #91506c44;
  animation:afcEnvSeal .24s 1.04s ease forwards;
}
@keyframes afcEnvFlap {to {transform:rotateX(180deg);z-index:0;}}
@keyframes afcEnvPaper {to {transform:translateY(-80px);}}
@keyframes afcEnvSeal {to {opacity:0;transform:translate(-50%,-50%) scale(.5);}}
@keyframes afcEnvHide {to {opacity:0;visibility:hidden;transform:translate(-50%,-60%) scale(.88);}}
.afc-envelope-letter {
  width:100%;
  max-width:365px;
  position:relative;
  z-index:1;
  opacity:0;
  transform:translateY(45px) scale(.95);
  padding: 24px 18px 23px;
  border:1px solid #f0d9e1;
  border-radius:24px;
  background:#fffdfa;
  box-shadow:0 16px 35px rgba(140,82,97,.12);
  animation:afcEnvReveal .9s 2.65s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes afcEnvReveal {to {opacity:1;transform:translateY(0) scale(1);}}
.afc-envelope-icon {font-size:24px;margin-bottom:10px;}
.afc-envelope-greeting {font:700 25px/1.3 Georgia,serif;color:#7f3857;margin:0 0 17px;overflow-wrap:anywhere;}
.afc-envelope-daily {font-size:16px;line-height:1.65;color:#795e6b;margin:0;min-height:100px;display:grid;place-items:center;overflow-wrap:anywhere;}
.afc-envelope-line {height:1px;margin:17px 0;background:linear-gradient(90deg,transparent,#efced8,transparent);}
.afc-envelope-forever {font-size:18px;line-height:1.45;color:#a84d6d;font-weight:800;margin:0;opacity:0;animation:afcEnvLove .8s 3.6s ease forwards;}
@keyframes afcEnvLove {to {opacity:1;}}
.afc-envelope-bottom {padding-bottom:12px;position:relative;z-index:3;display:grid;justify-items:center;gap:10px;}
.afc-envelope-continue {
  width:min(100%,330px);border:0!important;background:#ac5878!important;color:white!important;
  border-radius:15px;padding:16px 18px;font-size:17px;font-weight:800;
  display:flex;justify-content:center;gap:15px;align-items:center;cursor:pointer;
  box-shadow:0 9px 20px rgba(156,66,101,.20);
  opacity:0;transform:translateY(14px);animation:afcEnvButton .5s 4.05s ease forwards;
}
.afc-envelope-hint{font-size:11px;line-height:1.5;color:#a28894;margin:0;opacity:0;animation:afcEnvLove .5s 4.1s ease forwards;}
@keyframes afcEnvButton {to {opacity:1;transform:translateY(0);}}
.afc-envelope-continue:focus-visible {outline:3px solid #8b3d60;outline-offset:3px;}
@media(max-height:650px) {
  .afc-envelope-shell {min-height:650px;padding-top:14px;}
  .afc-envelope-brand {margin-top:4px;}
}
@media(max-width:360px){
  .afc-envelope-shell {padding-left:15px;padding-right:15px;}
  .afc-envelope-letter{padding:17px 13px;}
  .afc-envelope-daily {font-size:15px;}
  .afc-envelope-greeting {font-size:23px;}
}
@media(prefers-reduced-motion:reduce) {
  .afc-envelope-envelope {display:none;}
  .afc-envelope-letter,.afc-envelope-forever,.afc-envelope-continue,.afc-envelope-hint {
    animation:none;transform:none;opacity:1;
  }
}
