:root {
  --gece: #0d1a31;
  --lacivert: #13233f;
  --lacivert2: #20385f;
  --lacivert3: #2c4a7c;
  --amber: #f2a51a;
  --turuncu: #e8622c;
  --kraft: #ead9b6;
  --kagit: #fbf4e4;
  --murekkep: #1d2a42;
  --soluk: #a9b8d2;
  --el: "Caveat", cursive;
  --serif: "Playfair Display", Georgia, serif;
  --yazi: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--gece) repeating-linear-gradient(90deg, #0d1a31 0 46px, #13233f 46px 92px) fixed;
  color: var(--kagit);
  font-family: var(--yazi);
  font-weight: 700;
  line-height: 1.4;
  padding: 0 16px env(safe-area-inset-bottom);
  overflow-x: hidden;
}
a { color: var(--amber); }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Üstteki perde saçağı */
.perde {
  position: absolute; inset: 0 0 auto 0; height: 38px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 36px -8px, var(--lacivert3) 34px, var(--amber) 35px 38px, transparent 39px) 0 0 / 72px 38px repeat-x;
}

main { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; padding: 58px 0 24px; }

.logo { font-family: var(--el); font-weight: 700; text-align: center; font-size: clamp(66px, 20vw, 92px); line-height: .95; margin: 0 0 8px; color: var(--kagit); }
.logo em { font-style: normal; color: var(--amber); }
.logo.kucuk { font-size: 46px; margin-bottom: 16px; }
.kahraman { text-align: center; }
.alt-baslik { font-size: 18px; margin: 4px auto 18px; max-width: 420px; color: #dfe6f3; }

.ornek-kart { width: min(72%, 300px); margin: 0 auto 22px; transform: rotate(-2.5deg); border-radius: 6px; box-shadow: 0 16px 34px rgba(0,0,0,.45); aspect-ratio: 4 / 5; background: var(--kagit); overflow: hidden; }
.ornek-kart img, .kart img { display: block; width: 100%; height: auto; }

.kutu { background: var(--kagit); color: var(--murekkep); border-radius: 18px; padding: 20px 18px; margin-bottom: 16px; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.kutu h2 { font-family: var(--serif); font-weight: 900; font-size: 24px; margin: 0 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.kutu h2:not(:first-child) { margin-top: 20px; }
.orta { text-align: center; }
.kutu.orta h2 { justify-content: center; }
.ipucu { font-size: 15px; color: #57627a; margin: 4px 0 12px; }
.kutu .ipucu:last-child { margin-bottom: 0; }
.sayac { font-family: var(--yazi); font-size: 15px; font-weight: 800; color: #57627a; }
.hata { color: #c43f10; font-weight: 800; margin: 8px 0; min-height: 0; }
.hata:empty { display: none; }

.temalar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tema { background: #fff; color: var(--murekkep); border: 3px solid #d7c8a6; border-radius: 14px; padding: 12px 4px; font-weight: 800; font-size: 15px; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; }
.tema.secili { border-color: var(--turuncu); background: #fff3e6; }
.isaret { font-size: 22px; }

.ekle-satir { display: flex; gap: 8px; }
.ekle-satir input { flex: 1; min-width: 0; height: 52px; border: 3px solid #d7c8a6; border-radius: 12px; padding: 0 14px; font-size: 17px; font-weight: 800; color: var(--murekkep); background: #fff; }
.ad-listesi { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.ad-listesi:empty { margin: 4px 0; }
.ad-cip { background: var(--lacivert); color: var(--kagit); padding: 5px 4px 5px 14px; border-radius: 999px; font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; gap: 2px; max-width: 100%; overflow-wrap: anywhere; }
.ad-cip button { background: transparent; border: 0; color: var(--amber); font-size: 22px; line-height: 1; width: 34px; height: 34px; }

.btn { display: block; width: 100%; text-align: center; text-decoration: none; border: 0; border-radius: 14px; padding: 15px 14px; font-weight: 900; font-size: 18px; min-height: 54px; }
.btn.ana { background: var(--turuncu); color: #fff; box-shadow: 0 5px 0 #b3461b; }
.btn.ana:active { transform: translateY(3px); box-shadow: 0 2px 0 #b3461b; }
.btn.ana:disabled { background: #b5b0a3; box-shadow: none; cursor: not-allowed; }
.btn.ana.kucuk { box-shadow: none; }
.btn.ikincil { background: var(--lacivert); color: var(--kagit); width: auto; padding: 14px 20px; }
.iki-dugme .btn.ikincil { width: 100%; }
.btn.whatsapp { background: #1f8f55; color: #fff; }
.btn.mini { background: #fff; color: var(--murekkep); border: 2px solid #d7c8a6; font-size: 15px; min-height: 44px; padding: 8px 12px; margin-bottom: 8px; }
.bag-dugme { background: none; border: 0; color: inherit; font-weight: 800; font-size: 15px; text-decoration: underline; margin-top: 12px; padding: 8px; }
.iki-dugme { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.iki-dugme .btn { font-size: 16px; padding-left: 6px; padding-right: 6px; white-space: nowrap; }

.bilgi { color: #dfe6f3; font-size: 15px; display: grid; gap: 8px; padding: 2px 4px 8px; }
.bilgi b { color: var(--amber); }

.link-satir { background: #fff; border: 2px dashed #c9b88f; border-radius: 10px; padding: 11px 12px; font-size: 15px; font-weight: 800; overflow-wrap: anywhere; margin-bottom: 12px; }
.panel .btn.ana { margin-bottom: 8px; }
.serbest { margin-top: 12px; }

.uye-listesi { display: grid; gap: 9px; }
.uye { background: #fff; color: var(--murekkep); border: 3px solid #d7c8a6; border-radius: 14px; min-height: 58px; padding: 10px 16px; font-weight: 900; font-size: 19px; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; overflow-wrap: anywhere; }
.uye small { font-size: 13px; color: #6d7789; font-weight: 800; white-space: nowrap; }
.uye:disabled { background: #efe7d5; color: #8a8d97; cursor: not-allowed; }
.uye.secili { border-color: var(--turuncu); background: #fff0e0; }

.ilerleme { height: 10px; background: rgba(255,255,255,.18); border-radius: 6px; overflow: hidden; }
.ilerleme > div { height: 100%; background: var(--amber); transition: width .2s; }
.ilerleme.genis { background: #e4d8bf; margin: 8px 0 12px; }
.soru-no { font-size: 15px; margin: 10px 0 6px; color: var(--soluk); text-align: center; }
.soru { font-family: var(--serif); font-weight: 900; font-size: clamp(29px, 8vw, 38px); line-height: 1.16; text-align: center; margin: 0 0 22px; }
.uye-listesi.cevap { gap: 10px; }
.soru-alt { text-align: center; color: var(--soluk); }

.buyuk-sayi { font-family: var(--serif); font-weight: 900; font-size: 78px; line-height: 1; color: var(--turuncu); }
.buyuk-sayi small { font-size: 40px; color: var(--murekkep); }

.yukleniyor { text-align: center; font-family: var(--el); font-size: 38px; margin: 60px 0; }

.sahne { text-align: center; padding-top: 8px; }
.sahne-yazi { font-family: var(--el); font-size: 38px; line-height: 1.1; margin: 0 0 40px; }
.sahne .ipucu { color: var(--soluk); margin-top: 22px; }
.zarf { position: relative; display: block; margin: 0 auto; width: min(82vw, 330px); aspect-ratio: 3 / 2; background: none; border: 0; padding: 0; perspective: 800px; animation: salin 2.2s ease-in-out infinite; }
.zarf .gövde { position: absolute; inset: 0; background: var(--amber); border-radius: 10px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 20px; color: var(--lacivert); font-weight: 900; font-size: 26px; box-shadow: 0 16px 30px rgba(0,0,0,.45); }
.zarf .kapak { position: absolute; left: 0; right: 0; top: 0; height: 62%; background: #d98e0c; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .6s; z-index: 2; }
.zarf.acik { animation: none; }
.zarf.acik .kapak { transform: rotateX(180deg); }
@keyframes salin { 50% { transform: translateY(-8px) rotate(-1.2deg); } }
.zarf-kucuk { width: 94px; height: 64px; margin: 0 auto 12px; background: linear-gradient(160deg, #d98e0c 0 50%, transparent 50%), linear-gradient(200deg, #d98e0c 0 50%, var(--amber) 50%); border-radius: 6px; }

.orta-baslik h2 { font-family: var(--serif); font-weight: 900; font-size: 28px; text-align: center; margin: 10px 0 14px; }
.kart { margin-bottom: 18px; }
.kart img { border-radius: 6px; box-shadow: 0 12px 26px rgba(0,0,0,.42); margin-bottom: 12px; background: var(--kagit); aspect-ratio: 4 / 5; }
.kart .btn { min-height: 48px; padding: 11px 10px; font-size: 16px; }
.kart-izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kart-izgara .kart { margin-bottom: 8px; }
.kart.buyuk .btn { min-height: 54px; font-size: 18px; }

.oduller { list-style: none; padding: 0; margin: 0; }
.oduller li { padding: 11px 0; border-bottom: 2px dotted #d7c8a6; }
.oduller li:last-child { border-bottom: 0; }
.o-soru { font-size: 15px; color: #57627a; }
.o-kazanan { font-family: var(--el); font-size: 32px; color: var(--turuncu); line-height: 1.1; overflow-wrap: anywhere; }
.o-kazanan small { font-family: var(--yazi); font-size: 14px; font-weight: 800; color: #57627a; }

.alt { position: relative; z-index: 1; text-align: center; color: var(--soluk); font-size: 14px; padding: 8px 0 26px; }
.bildirim { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--lacivert); color: var(--kagit); border: 2px solid var(--amber); padding: 11px 18px; border-radius: 12px; z-index: 20; font-size: 15px; width: max-content; max-width: min(92vw, 460px); text-align: center; }

@media (min-width: 600px) { .kart.buyuk { max-width: 440px; margin-left: auto; margin-right: auto; } }
@media (prefers-reduced-motion: reduce) { .zarf { animation: none; } * { transition: none !important; } }
