/* baslik.css — BASLIK: başlık ekranı (logo, düğmeler) + giriş geçişi. Yalnız başlığa ait sınıflar. */
#bsPerde { position: fixed; inset: 0; z-index: 39; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 55%, #1a1450 0, #0a0830 70%, #05041c 100%); }
#bsPerde.in { opacity: 1; transition: opacity .6s ease-in; }
#bsPerde.out { opacity: 0; transition: opacity 1.6s ease-out; }

/* ── altyazı kutusu başlıkta görünmez (zaten sesle söyleniyor; oda ve pencere görünsün) ── */
#ui:has(.u-title.on) .u-sub { opacity: 0 !important; }
.u-tshade { background: linear-gradient(180deg, rgba(20, 8, 60, 0.5) 0%, rgba(20, 8, 60, 0.08) 28%, rgba(20, 8, 60, 0) 55%, rgba(20, 8, 60, 0.05) 74%, rgba(20, 8, 60, 0.5) 100%) !important; }

/* ── logo: büyük, el yazısı, sıcak ışıltı, harfler sırayla parlar ── */
#ui .u-title .u-logo { --bs: min(calc(var(--k) * 112px), 10vw); }
#ui .u-title { padding-bottom: calc(var(--padB) + .8vh); }
#ui .u-title .u-logo::before { left: -34%; right: -34%; top: -70%; bottom: -80%; background: radial-gradient(ellipse at 50% 52%, rgba(255, 226, 140, 0.5), rgba(255, 150, 210, 0.2) 40%, rgba(255, 150, 210, 0) 68%); }
#ui .u-title .u-logo::after { content: ""; position: absolute; z-index: -1; pointer-events: none; left: -40%; right: -40%; top: -110%; bottom: -120%; opacity: .55;
  background: repeating-conic-gradient(from 0deg at 50% 52%, rgba(255, 236, 170, 0.20) 0deg 6deg, rgba(255, 236, 170, 0) 6deg 24deg);
  -webkit-mask-image: radial-gradient(circle at 50% 52%, #000 0, rgba(0, 0, 0, 0.5) 30%, transparent 62%); mask-image: radial-gradient(circle at 50% 52%, #000 0, rgba(0, 0, 0, 0.5) 30%, transparent 62%);
  animation: bs-rays 40s linear infinite; }
@keyframes bs-rays { to { transform: rotate(360deg); } }
#ui .u-title .sl-logo { filter: drop-shadow(0 .035em 0 rgba(58, 30, 130, .75)) drop-shadow(0 .1em .14em rgba(0, 0, 40, .5)) drop-shadow(0 0 .45em rgba(255, 214, 120, .55)); }
#ui .u-title .sl-big { font-size: var(--bs); letter-spacing: -.01em; }
#ui .u-title .sl-l { -webkit-text-stroke: .14em #fffaf0; paint-order: stroke fill; text-shadow: 0 .04em 0 #1f55a8;
  animation: st-wob 3.2s ease-in-out infinite, bs-shim 6s ease-in-out infinite; animation-delay: calc(var(--n, 0) * -.31s), calc(var(--n, 0) * .17s); }
#ui .u-title .sl-ve { font-size: .46em; color: #fff4c8; text-shadow: 0 .05em 0 #1f55a8, 0 0 .4em rgba(255, 214, 120, .8); -webkit-text-stroke: .08em #1f55a8; paint-order: stroke fill; margin: 0 .16em .12em; align-self: flex-end; transform: rotate(-6deg); }
#ui .u-title .sl-row > :nth-child(1) { --n: 1 } #ui .u-title .sl-row > :nth-child(2) { --n: 2 } #ui .u-title .sl-row > :nth-child(3) { --n: 3 } #ui .u-title .sl-row > :nth-child(4) { --n: 4 }
#ui .u-title .sl-row > :nth-child(6) { --n: 6 } #ui .u-title .sl-row > :nth-child(7) { --n: 7 } #ui .u-title .sl-row > :nth-child(8) { --n: 8 } #ui .u-title .sl-row > :nth-child(9) { --n: 9 } #ui .u-title .sl-row > :nth-child(10) { --n: 10 }
@keyframes bs-shim { 0%, 62%, 100% { filter: brightness(1) saturate(1); } 72% { filter: brightness(1.6) saturate(1.25); } 82% { filter: brightness(1); } }
#ui .u-title .sl-rib { margin-top: .1em; padding: .12em .8em .2em 2.1em; font-size: calc(var(--bs) * .36); letter-spacing: .02em; transform: rotate(-1.5deg); border: .09em solid #ffe9a0; border-radius: .7em; position: relative;
  background: linear-gradient(#8fd0ff, #3a86e8 55%, #1f55b0); box-shadow: 0 .12em 0 #12408a, 0 .3em .5em rgba(10, 0, 50, .5), 0 0 .8em rgba(150, 200, 255, .7), inset 0 .08em 0 rgba(255, 255, 255, .45); text-shadow: 0 .06em 0 rgba(30, 18, 110, .6); }
#ui .u-title .sl-rib::before { content: ""; position: absolute; left: .45em; top: 50%; width: 1.25em; height: 1.5em; transform: translateY(-52%); filter: drop-shadow(0 0 .25em rgba(255, 224, 140, .9));
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'><path d='M2 12 L11 12 L11 12 L2 12Z' fill='%23ffe08a' opacity='.7'/><path d='M8 27 L9.5 9 L14.5 9 L16 27Z' fill='%23fff6e6'/><path d='M8.5 22 L15.5 22 L15.8 26 L8.2 26Z M9 14.5 L15 14.5 L14.8 18 L9.2 18Z' fill='%23ec5a4e'/><rect x='8.6' y='5' width='6.8' height='4' rx='1' fill='%23ffd44a'/><path d='M8 5 L12 1 L16 5Z' fill='%23ec5a4e'/><path d='M15.5 6.5 L23 3 L23 10Z' fill='%23ffe9a0' opacity='.7'/></svg>") center / contain no-repeat; animation: bs-lh 2.6s ease-in-out infinite; }
@keyframes bs-lh { 0%, 100% { filter: drop-shadow(0 0 .1em rgba(255, 224, 140, .5)); } 50% { filter: drop-shadow(0 0 .45em rgba(255, 224, 140, 1)); } }
@media (max-aspect-ratio: 1/1) { #ui .u-title .u-logo { margin-top: calc(var(--k) * 56px); --bs: min(calc(var(--k) * 132px), 11vw); } #ui .u-title { padding-bottom: calc(var(--padB) + 3vh); } }

/* ── düğmeler: hepsi aynı boyda (Oyna, Dünya Haritası, Devam Et), tek sırada yan yana, simetrik; Feza ve Pırıl'ın üstüne binmez ── */
#ui .u-title .u-tbtns { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: center; gap: calc(var(--k) * 16px); max-width: 94vw; }
#ui .u-title .u-tbtns::after { display: none; }
#ui .u-title .u-tbtns .u-btn,
#ui .u-title .u-tbtns .u-btn.main,
#ui .u-title .u-tbtns .u-title-map {
  width: calc(var(--k) * 240px); min-width: 0; max-width: 30vw; height: calc(var(--k) * 56px); min-height: calc(var(--k) * 56px);
  font-size: calc(var(--k) * 22px); gap: .38em; padding: 0 .75em !important; line-height: 1; border-radius: 999px;
  box-sizing: border-box; white-space: nowrap; animation: none;
  transition: transform .22s cubic-bezier(.3, 1.7, .5, 1), filter .2s;
}
#ui .u-title .u-tbtns #contBtn, #ui .u-title .u-tbtns .u-btn.b { order: 1; }
#ui .u-title .u-tbtns .u-btn.main {
  order: 2; overflow: hidden;
  --c1: #b4ff8a; --c2: #3fd04f; --c3: #1d9a3a; --lip: #11702b;
  box-shadow: 0 calc(var(--k) * 6px) 0 var(--lip), 0 calc(var(--k) * 12px) calc(var(--k) * 18px) rgba(0, 20, 0, .42), 0 0 0 calc(var(--k) * 4px) #ffe9a0, 0 0 calc(var(--k) * 24px) rgba(150, 255, 150, .6);
}
#ui .u-title .u-tbtns .u-title-map { order: 3; }
#ui .u-title .u-tbtns .u-btn.main .u-svg { width: 1.05em; height: 1.05em; filter: drop-shadow(0 .05em 0 rgba(0, 70, 20, .6)); }
#ui .u-title .u-tbtns .u-btn.main::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 28%; left: -40%; pointer-events: none; transform: skewX(-20deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .65), rgba(255, 255, 255, 0)); animation: bs-shine 3.8s ease-in-out infinite 1s; }
@keyframes bs-shine { 0%, 55% { left: -40%; } 85%, 100% { left: 125%; } }
#ui .u-title .u-tbtns .u-btn.down { transform: translateY(calc(var(--k) * 5px)) scale(.96, .95); animation: none; filter: brightness(1.08); transition: transform .06s; }
#ui .u-title .u-tbtns .u-btn > span { white-space: nowrap; overflow: visible; max-width: none; }
@media (max-aspect-ratio: 1/1) {
  #ui .u-title .u-tbtns { gap: calc(var(--k) * 10px); max-width: 96vw; }
  #ui .u-title .u-tbtns .u-btn,
  #ui .u-title .u-tbtns .u-btn.main,
  #ui .u-title .u-tbtns .u-title-map {
    width: calc(var(--k) * 195px); max-width: 31vw; height: calc(var(--k) * 52px); min-height: calc(var(--k) * 52px);
    font-size: clamp(14px, calc(var(--k) * 20px), 21px); padding: 0 .5em !important;
  }
}

/* kayıt varken: "Baştan Başla" basılı tutulur (yanlışlıkla silinmesin); dolan çubuk */
#ui .u-title .u-tbtns .u-btn .bs-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: inherit; pointer-events: none; z-index: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .8)); transform-origin: 0 50%; transform: scaleX(var(--hp, 0)); mix-blend-mode: soft-light; }
#ui .u-title .u-tbtns .u-btn.bs-hold { transform: scale(.97); filter: brightness(1.1); }
#ui .u-title .u-tbtns .u-btn.bs-wiggle { animation: bs-wig .4s; }
@keyframes bs-wig { 0%, 100% { transform: none; } 25% { transform: translateX(-6px) rotate(-2deg); } 75% { transform: translateX(6px) rotate(2deg); } }
#ui .u-title .sl-rib { white-space: nowrap; width: max-content; max-width: 94vw; padding-right: 1em; }
