:root{
  --bg1:#16070b;
  --bg2:#2a070b;
  --card: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.74);
  --gold: #ffd36a;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);

  /* 🎄 kırmızı yılbaşı gradient */
  background:
    radial-gradient(1200px 700px at 20% 10%, #7a141e 0%, transparent 60%),
    radial-gradient(1000px 700px at 80% 20%, #b61c23 0%, transparent 55%),
    radial-gradient(900px 700px at 60% 80%, #3a0508 0%, transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  background-attachment: fixed;
  overflow-x:hidden;
}

#snow{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:0;
}

.wrap{
  position:relative;
  z-index:1;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.hero{
  min-height: 86vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
  padding: 24px 10px;
}

.badge{
  display:inline-flex;
  align-self:flex-start;
  padding: 8px 12px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  font-size: 14px;
}

h1{
  font-size: clamp(30px, 4vw, 54px);
  line-height:1.05;
  margin:0;
}

.sub{
  max-width: 62ch;
  margin:0;
  color: var(--muted);
  font-size: 16px;
}

.countdown{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

.box{
  min-width: 90px;
  padding: 12px 14px;
  border-radius: 16px;
  border:1px solid var(--stroke);
  background: var(--card);
  text-align:center;
  backdrop-filter: blur(10px);
}

.box div{
  font-size: 24px;
  font-weight: 800;
}

.box span{
  font-size: 12px;
  color: var(--muted);
}

.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
}

.btn{
  padding: 12px 16px;
  border-radius: 999px;
  border:1px solid rgba(0,0,0,.25);
  background: var(--gold);
  color:#1b1200;
  font-weight: 750;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition: transform .15s ease;
}

.btn:hover{ transform: translateY(-1px); }

.btn.ghost{
  background: rgba(255,255,255,.06);
  border:1px solid var(--stroke);
  color: var(--text);
}

.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
}

.mini{ margin: 4px 0 0; color:var(--muted); font-size: 13px; }

.card{
  margin-top: 18px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
}

.card h2{ margin:0 0 6px; }
.list{ margin: 10px 0 0; }
.list li{ margin: 6px 0; color: var(--muted); }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.pic{
  width:100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}

.footer{
  padding: 18px 0 8px;
  text-align:center;
}

/* ✅ Kilit: sayaç bitene kadar alt içerik görünmesin */
body.locked #lockedContent{
  display:none;
}

/* Mobil */
@media (max-width: 820px){
  .grid{ grid-template-columns: 1fr 1fr; }
  .pic{ height: 160px; }
}
@media (max-width: 520px){
  .grid{ grid-template-columns: 1fr; }
  .pic{ height: 200px; }
}

/* ✅ Modal */
.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
}
.modal.show{ display:block; }

.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}

.modal-box{
  position:absolute;
  left:50%;
  top:12%;
  transform: translateX(-50%);
  width: min(740px, 92vw);
  padding: 18px 18px 14px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(20,18,30,.92);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  /* var olanlar kalsın, bunları ekle */
  max-height: 80vh;      /* ekranın %80’i kadar */
  overflow: hidden;      /* taşanı içeride yöneteceğiz */
}


.modal-title{
  font-weight: 900;
  letter-spacing: .4px;
  margin-bottom: 10px;
}

.modal-text{
  color: rgba(255,255,255,.9);
  line-height: 1.6;
  white-space: pre-wrap;
  margin-bottom: 14px;
  max-height: 52vh;      /* mesaj alanı kaydırılabilir */
  overflow-y: auto;      /* dikey kaydırma */
  -webkit-overflow-scrolling: touch; /* iPhone için daha akıcı */
  padding-right: 6px;    /* scrollbar yazıyı ezmesin */
}


.modal-actions{
  display:flex;
  justify-content:flex-end;
}
.modal-ok{
  background:#ff3b6b;
  color:#fff;
  border:0;
}
