/* =====================================================================
   Ulu Hoca Games — giriş sayfası (/giris): kaydırmayla ilerleyen tanıtım
   Sayfa uzun bir "iz"dir; ekrandaki sahne (.stage) yapışık durur ve
   kaydırma ilerledikçe assets/js/intro.js sahnedekileri hareket ettirir.
   ===================================================================== */

/* tek ekran kuralını bu sayfada kaldır: burada kaydırma tanıtımı sürer */
body.intro-page {
  display: block;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ---------- üst şerit ---------- */
.ibar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 3vw, 32px) 14px;
  pointer-events: none;
}
.ibar > * { pointer-events: auto; }
.ibar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 .95rem/1 var(--display);
  letter-spacing: -.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.ibar__medal { width: 36px; box-shadow: 3px 4px 10px rgba(0, 0, 0, .45); }
.ibar__login.kick-btn {
  width: auto;
  height: 46px;
  padding: 0 18px 0 8px;
  gap: 10px;
  font-size: .88rem;
  background: rgba(36, 39, 46, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ibar__login .kick-mark { width: 30px; height: 30px; border-radius: 8px; }
.ibar__login .kick-mark svg { width: 14px; height: 14px; }

/* ---------- iz + sahne ---------- */
.intro { position: relative; height: 720vh; }
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* madalyonun içinden açılan oyun görseli; boyutu ve kırpımı JS verir */
.reveal {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  background:
    radial-gradient(70% 70% at 30% 30%, rgba(243, 181, 69, .35), transparent 70%),
    radial-gradient(70% 70% at 80% 80%, rgba(143, 165, 191, .35), transparent 70%),
    var(--bg-hi);
  clip-path: circle(0 at 50% 50%);
  will-change: clip-path, left, top, width, height;
}
.reveal__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.reveal__shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(18, 20, 24, .9) 0%, rgba(18, 20, 24, .55) 42%, rgba(18, 20, 24, 0) 72%),
    linear-gradient(0deg, rgba(18, 20, 24, .75) 0%, rgba(18, 20, 24, 0) 46%);
}

/* yedek kartlar */
.ghost {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--edge);
  border-radius: 24px;
  background: linear-gradient(145deg, #2c3038, #22252b);
  box-shadow: var(--raise-2);
  opacity: 0;
  visibility: hidden;
}
.ghost span { color: var(--ink-3); font: 600 .9rem/1 var(--display); letter-spacing: .02em; }

/* ---------- 1 · açılış ---------- */
.hero {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vh, 38px);
  pointer-events: none;
  text-align: center;
}
.hero__medal {
  width: clamp(130px, 24vmin, 220px);
  box-shadow:
    14px 18px 40px rgba(0, 0, 0, .55), -8px -8px 22px rgba(255, 255, 255, .06),
    inset -5px -6px 12px rgba(170, 120, 90, .28), inset 3px 3px 7px #fff;
  will-change: transform, opacity;
}
.hero__title { font-size: clamp(2.4rem, min(8vw, 9vh), 5rem); will-change: transform, opacity; }
.hero__title .title__b { margin-inline: auto; }
.hero__hint {
  position: absolute;
  bottom: max(28px, 5vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.mouse {
  position: relative;
  width: 22px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 12px;
}
.mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--amber);
}

/* ---------- sahne metinleri ---------- */
.scene {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  visibility: hidden;
}
.scene .eyebrow { margin-bottom: 14px; color: var(--amber); }
.scene__title {
  color: #fff;
  font: 800 clamp(2.1rem, min(5.4vw, 9vh), 4.6rem)/1.02 var(--display);
  letter-spacing: -.04em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .45);
}
.scene__text {
  max-width: 440px;
  margin-top: 16px;
  color: #cfd3db;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.55;
}
[data-line] { opacity: 0; will-change: transform, opacity; }

.scene--game {
  left: clamp(20px, 6vw, 96px);
  right: 20px;
  bottom: clamp(70px, 14vh, 150px);
  max-width: 620px;
}

.scene--lib {
  right: clamp(20px, 6vw, 96px);
  top: 50%;
  width: min(440px, 38vw);
  translate: 0 -50%;
}

.scene--coin {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 7vw, 110px);
  padding: 90px 24px 40px;
  perspective: 900px;
}
.scene__copy { width: min(440px, 100%); }
.bigcoin {
  flex: none;
  width: clamp(150px, 28vmin, 280px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.bigcoin__face {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #fff6d8 0, #f7d27a 22%, #f3b545 58%, #c98a1e 100%);
  box-shadow:
    18px 24px 50px rgba(0, 0, 0, .55),
    inset -8px -12px 20px rgba(120, 70, 10, .35),
    inset 0 0 0 clamp(7px, 1.4vmin, 12px) rgba(255, 236, 180, .35),
    0 0 90px rgba(243, 181, 69, .22);
}
.bigcoin__face img { width: 60%; height: auto; translate: -3% 2%; opacity: .85; }

.scene--gate {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 90px 20px 24px;
}
.scene--gate .gate__card { will-change: transform, opacity; }
.scene--gate .title { font-size: clamp(2rem, min(9vw, 7vh), 3rem); }
.scene--gate .title__b { margin-inline: auto; }
.scene--gate .kick-btn { height: 58px; font-size: .98rem; }
.scene--gate .orb--amber { right: -30px; top: 14%; }
.scene--gate .orb--steel { left: -20px; top: auto; bottom: 24%; }
.scene--gate .orb--ember { left: 44px; top: -10px; }

/* ---------- ilerleme çizgisi ---------- */
.meter {
  position: absolute;
  right: clamp(10px, 2vw, 26px);
  top: 50%;
  z-index: 6;
  width: 3px;
  height: 30vh;
  translate: 0 -50%;
  border-radius: 3px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}
.meter i {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--ember), var(--amber));
  transform: scaleY(0);
  transform-origin: top;
}

/* ---------- dar ekran ---------- */
@media (max-width: 819px) {
  .ibar__brand { font-size: 0; gap: 0; } /* yalnızca madalyon */
  .scene--lib { left: 24px; right: 24px; top: auto; bottom: 7vh; width: auto; translate: none; }
  .scene--coin { flex-direction: column; justify-content: center; text-align: center; gap: 28px; }
  .scene--coin .scene__text { margin-inline: auto; }
  .meter { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .mouse::after { animation: wheel 1.6s var(--ease) infinite; }
  @keyframes wheel { 0% { opacity: 0; translate: 0 -2px; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 10px; } }
}

/* tarayıcının kendi kaydırma çubuğu gizli: ilerlemeyi sağdaki kırmızı-sarı çubuk gösterir */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
