/* ULENTIS Games · ana sayfa (D4 "Işıkla başlar"; hafif perde + kısa yolculuk varsayılan, Yiğit 2026-11-21). temel.css'in üstüne gelir. */

/* Sağ üstte soğuk hale (lime, çok düşük) */
.hale { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(60vmax 50vmax at 100% 0%, rgba(182,255,59,.10), rgba(18,230,255,.04) 45%, transparent 70%); }

/* Giriş: dev başlık, alt metin, macenta hap */
.giris { position: fixed; z-index: 10; top: 104px; left: var(--kenar); right: var(--kenar); display: grid; gap: 32px;
  justify-items: start; pointer-events: none; }
@media (min-width: 900px) { .giris { top: 112px; gap: 40px; } }
.giris h1 { font-weight: 300; font-size: clamp(64px, 11.5vw, 184px); line-height: .98; letter-spacing: -.035em; }
.giris h1 .satir { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.giris h1 .satir > span { display: inline-block; }
.giris .alt { display: grid; gap: 32px; justify-items: start; }
.giris p { font-size: 17px; line-height: 26px; color: #DCD6F2; max-width: 36ch; }
@media (min-width: 900px) { .giris p { font-size: 19px; line-height: 28px; } }
.eylem { pointer-events: auto; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--dis); color: var(--gece);
  font-weight: 600; font-size: 16px; line-height: 20px; display: inline-flex; align-items: center;
  box-shadow: 0 0 0 1px rgba(255,43,214,.4), 0 8px 40px rgba(255,43,214,.45); transition: box-shadow .3s; }
.eylem:hover { box-shadow: 0 0 0 1px rgba(255,43,214,.6), 0 8px 56px rgba(255,43,214,.7); }

/* Okunabilirlik: hafif perde yalnız metin sütununda; oyuncaklar ışıltısını korur */
.perde { position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(70vw 60vh at 0% 30%, rgba(11,6,24,.78), rgba(11,6,24,.4) 55%, rgba(11,6,24,0) 80%); }
@media (min-width: 900px) { .perde { background: radial-gradient(52vw 70vh at 8% 42%, rgba(11,6,24,.8), rgba(11,6,24,.42) 55%, rgba(11,6,24,0) 78%); } }
.giris h1, .giris p { text-shadow: 0 2px 32px rgba(11,6,24,1), 0 0 4px rgba(11,6,24,.9); }
.panel h2, .panel p, .panel .kod { text-shadow: 0 2px 24px rgba(11,6,24,.9), 0 0 2px rgba(11,6,24,.8); }

.ipucu { position: fixed; z-index: 10; right: var(--kenar); bottom: 72px; font-size: 14px; line-height: 20px;
  color: var(--ikincil); pointer-events: none; text-align: right; padding: 8px 12px; border-radius: 12px;
  background: rgba(8,4,15,.78); border: 1px solid rgba(201,194,230,.18); backdrop-filter: blur(8px); }
@media (max-width: 899px) { .ipucu { display: none; } }

/* Yolculuk: kısa sürüm varsayılan; yükseklik oyun sayısına göre ana.js'te ayarlanır */
.alan { height: 640vh; position: relative; z-index: 1; }
.panel { position: fixed; z-index: 10; top: 50%; transform: translateY(-50%); width: min(440px, calc(100vw - 2 * var(--kenar)));
  display: grid; gap: 16px; opacity: 0; visibility: hidden; }
.panel.sol { left: var(--kenar); } .panel.sag { right: var(--kenar); }
.panel .kod { font-size: 17px; line-height: 24px; color: var(--ikincil); }
.panel h2 { font-weight: 600; font-size: clamp(48px, 6vw, 88px); line-height: .95; letter-spacing: -.03em; }
.panel p { font-size: 17px; line-height: 26px; color: var(--ikincil); max-width: 34ch; }
.panel a { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px;
  border-bottom: 1px solid currentColor; }
@media (max-width: 899px) { .panel { top: auto; bottom: 88px; transform: none; } .panel.sag { right: auto; left: var(--kenar); } }

.son { position: relative; z-index: 10; min-height: 100vh; min-height: 100svh; display: grid; place-content: center; justify-items: center;
  text-align: center; gap: 16px; padding: 0 var(--kenar) 48px; background: linear-gradient(transparent, var(--gece) 30%); }
.son h2 { font-weight: 300; font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -.03em; }
.son p { color: var(--ikincil); font-size: 17px; line-height: 26px; }
.son-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin-top: 32px; font-size: 15px; line-height: 44px; color: var(--ikincil); }
.son-menu a:hover { color: var(--metin); }
.son small { font-size: 13px; line-height: 20px; color: var(--sonuk); }

/* WebGL yoksa (eski cihaz, kapalı GPU): yolculuk yerine düz liste; içerik kaybolmaz */
.duz canvas.sahne, .duz .ipucu, .duz .alan { display: none; }
.duz .giris { position: relative; top: auto; left: auto; right: auto; padding: 136px var(--kenar) 64px; }
.duz .perde { display: none; }
.duz .paneller { position: relative; z-index: 10; display: grid; gap: 64px; padding: 64px var(--kenar); }
.duz .panel { position: relative; inset: auto; transform: none; opacity: 1; visibility: visible; }
.duz .son { min-height: 60vh; }
