:root {
  color-scheme: only light;
  --kraft: #d9b98a;
  --kraft-koyu: #b98f55;
  --lacivert: #13233f;
  --lacivert-2: #1f3560;
  --amber: #f2b03c;
  --turuncu: #e4572e;
  --turuncu-koyu: #a8361a;
  --krem: #fbf5e8;
  --wa: #1f8f4e;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; overflow-x: clip; }
body {
  /* katlanmış kâğıt harita: ızgara + kat izleri */
  background-color: var(--kraft);
  background-image:
    linear-gradient(90deg, rgba(19, 35, 63, .06) 1px, transparent 1px),
    linear-gradient(rgba(19, 35, 63, .06) 1px, transparent 1px),
    linear-gradient(90deg, transparent 49.6%, rgba(90, 60, 20, .12) 50%, transparent 50.4%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  color: var(--lacivert);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 16px; line-height: 1.45;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.ust { position: relative; background: var(--lacivert); color: var(--krem); padding: 34px 16px 30px; text-align: center; overflow: hidden; }
.rota-sus { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rota-sus path { fill: none; stroke: var(--amber); stroke-width: 3; stroke-dasharray: 9 9; opacity: .35; }
h1 { position: relative; margin: 0; font-weight: 800; font-size: clamp(38px, 11vw, 56px); line-height: 1; letter-spacing: -.02em; }
h1 span { display: block; font-family: Caveat, "Comic Sans MS", cursive; font-weight: 700; color: var(--amber); font-size: 1.15em; transform: rotate(-2deg); margin-top: 2px; }
.soz { position: relative; max-width: 420px; margin: 12px auto 0; font-size: 17px; opacity: .92; }

main { max-width: 560px; margin: 0 auto; padding: 18px 16px 60px; }

fieldset { border: 0; margin: 0 0 14px; padding: 14px 14px 16px; background: var(--krem); border-radius: 14px; box-shadow: 0 3px 0 rgba(19, 35, 63, .18); }
legend { float: left; width: 100%; padding: 0; margin: 0 0 10px; font-weight: 800; font-size: 19px; }
legend b { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 6px; border-radius: 50%; background: var(--turuncu); color: #fff; font-size: 15px; vertical-align: 2px; }
legend small { font-weight: 500; font-size: 14px; opacity: .7; }
.cipler { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.cip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 16px; font-weight: 700; min-height: 44px; padding: 8px 14px; border-radius: 999px; cursor: pointer; background: #fff; color: var(--lacivert); border: 2px solid var(--lacivert); }
.cip[aria-pressed="true"] { background: var(--lacivert); color: var(--krem); }
.uyari-secim { margin: 0 0 8px; color: var(--turuncu-koyu); font-weight: 700; text-align: center; }

.dugme { display: block; width: 100%; font: inherit; font-weight: 800; font-size: 18px; text-align: center; text-decoration: none; min-height: 52px; padding: 13px 16px; margin-top: 10px; border-radius: 12px; cursor: pointer; background: var(--lacivert); color: var(--krem); border: 0; box-shadow: 0 4px 0 #050a14; }
.dugme:active { transform: translateY(3px); box-shadow: 0 1px 0 #050a14; }
.dugme.vurgu { background: var(--turuncu); color: #fff; box-shadow: 0 4px 0 var(--turuncu-koyu); }
.dugme.wa { background: var(--wa); color: #fff; box-shadow: 0 4px 0 #11592f; }
.dugme.ikincil { background: var(--krem); color: var(--lacivert); box-shadow: 0 4px 0 rgba(19, 35, 63, .3); }
.dugme:disabled { opacity: .45; cursor: default; }

/* ---------- Kart ---------- */
#sonuc { scroll-margin-top: 12px; }
.sayac { margin: 6px 0 12px; text-align: center; font-weight: 700; }
.sayac em { font-style: normal; display: block; font-weight: 500; font-size: 14px; opacity: .8; }
.deste { perspective: 1400px; position: relative; }
.kart { display: grid; position: relative; cursor: pointer; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); outline-offset: 6px; }
.kart.acik { transform: rotateY(180deg); cursor: default; }
.kart > .yuz { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 22px; box-shadow: 0 14px 26px rgba(19, 35, 63, .3); }
.kart .arka { /* kapalı yüz: lacivert harita */
  min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--krem); text-align: center; padding: 24px;
  background-color: var(--lacivert);
  background-image: linear-gradient(90deg, rgba(242, 176, 60, .12) 1px, transparent 1px), linear-gradient(rgba(242, 176, 60, .12) 1px, transparent 1px);
  background-size: 34px 34px; border: 8px solid var(--krem);
}
.arka .raptiye { font-size: 76px; line-height: 1; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .25)); animation: zipla 1.4s ease-in-out infinite; }
.arka .el { font-family: Caveat, cursive; font-size: 40px; color: var(--amber); line-height: 1; }
.arka small { font-size: 15px; opacity: .8; }
.arka svg { width: 80%; height: 70px; }
.arka svg path { fill: none; stroke: var(--amber); stroke-width: 3; stroke-dasharray: 8 8; }
@keyframes zipla { 50% { transform: translateY(-10px); } }

.kart .on { transform: rotateY(180deg); background: var(--krem); padding: 22px 20px 20px; border-top: 14px solid var(--amber); }
.on .bas { display: flex; gap: 12px; align-items: center; }
.on .emo { font-size: 54px; line-height: 1; flex: none; }
.on h2 { margin: 0; font-size: 25px; line-height: 1.12; font-weight: 800; }
.etiketler { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.etiketler span { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(19, 35, 63, .08); }
.etiketler span.farkli { background: rgba(228, 87, 46, .15); color: var(--turuncu-koyu); }
.adimlar { list-style: none; margin: 14px 0 0; padding: 0; position: relative; }
.adimlar::before { content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; border-left: 3px dashed var(--turuncu); }
.adimlar li { position: relative; padding: 4px 0 12px 46px; font-size: 16.5px; }
.adimlar li b { position: absolute; left: 0; top: 2px; width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--lacivert); color: var(--krem); font-size: 14px; }
.adimlar li b i { font-style: normal; transform: rotate(45deg); }
.adimlar li:last-child b { background: var(--turuncu); }
.maliyet { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 10px 12px; border-radius: 12px; background: var(--amber); font-weight: 800; }
.maliyet small { font-weight: 600; opacity: .8; margin-left: auto; font-size: 13px; }

.kart.giris { animation: giris .45s cubic-bezier(.3, 1.3, .5, 1); }
.kart.cikis { animation: cikis .3s ease-in forwards; }
@keyframes giris { from { transform: translateY(60px) rotate(6deg) scale(.9); opacity: 0; } }
@keyframes cikis { to { transform: translateX(-120%) rotate(-14deg); opacity: 0; } }
.kart.acik.cikis { animation-name: cikis-acik; }
@keyframes cikis-acik { from { transform: rotateY(180deg); } to { transform: rotateY(180deg) translateX(120%) rotate(14deg); opacity: 0; } }

.sonuc-dugmeler { margin-top: 18px; }
.tahmin { font-size: 13.5px; opacity: .8; margin: 14px 2px 0; }

.paylasilan { margin-bottom: 22px; }
.davet { text-align: center; font-size: 18px; margin: 4px 0 14px; }
.paylasilan .kart { cursor: default; }

.guven { text-align: center; font-weight: 700; margin: 26px 0 4px; }
.altnot { text-align: center; font-size: 14px; opacity: .75; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .kart, .kart.giris, .kart.cikis { transition: none; animation: none; }
  .arka .raptiye { animation: none; }
}
