/* psychobyl.com açılış sayfası: oyunun ana menüsünün dili (arka plan, atom +
   yazı, plakasız seyrek harfli düğmeler, altta neon yeşil çizgi). Tek, koyu
   görünüm bilinçli: oyunun kendi dünyası. */
@font-face { font-family: 'Chakra Petch'; font-weight: 300; font-display: swap; src: url(/oyna/fonts/ChakraPetch-300-latin-ext.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Chakra Petch'; font-weight: 300; font-display: swap; src: url(/oyna/fonts/ChakraPetch-300-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Chakra Petch'; font-weight: 500; font-display: swap; src: url(/oyna/fonts/ChakraPetch-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Chakra Petch'; font-weight: 500; font-display: swap; src: url(/oyna/fonts/ChakraPetch-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  color-scheme: dark;
  --zemin: #080c08;
  --metin: rgba(228, 234, 222, 0.9);
  --soluk: rgba(196, 206, 186, 0.72);
  --neon: #58a538;
  --neon-acik: #9dd031;
  --font: 'Chakra Petch', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--zemin); color: var(--metin); font-family: var(--font); }
body { overflow-x: hidden; }
[hidden] { display: none !important; }

.giris {
  position: relative;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.giris__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  filter: brightness(0.72) saturate(0.88) contrast(1.05);
  pointer-events: none;
  user-select: none;
}
.giris__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 94% 92% at 50% 50%, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.08) 65%, rgba(0, 0, 0, 0.2) 87%, rgba(0, 0, 0, 0.36) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, transparent 18%, transparent 80%, rgba(0, 0, 0, 0.3) 100%);
}

.giris__ust {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.giris__hesap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 12px 6px 6px;
  background: rgba(6, 12, 7, 0.62);
  border: 1px solid rgba(116, 212, 58, 0.35);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.giris__avatar { width: 30px; height: 30px; display: block; }
.giris__ad {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40vw;
}
.giris__dil { display: flex; gap: 4px; }
.giris__dil button {
  font: 500 13px/1 var(--font);
  letter-spacing: 0.14em;
  color: var(--soluk);
  background: none;
  border: 1px solid transparent;
  padding: 6px 8px;
  cursor: pointer;
}
.giris__dil button[aria-pressed='true'] { color: var(--metin); border-color: rgba(116, 212, 58, 0.45); }
.giris__dil button:hover { color: #fff; }

.giris__orta {
  position: relative;
  z-index: 2;
  flex: 1;
  /* 560 px'te "STEAM İLE GİRİŞ YAP" sığmayıp iki satıra kırılıyordu. */
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.2vh, 34px);
  padding-block: 2vh 4vh;
}

.giris__marka { display: flex; flex-direction: column; align-items: center; }
.giris__atom {
  width: clamp(96px, 15vh, 168px);
  height: auto;
  filter: drop-shadow(0 0 3px rgba(118, 190, 52, 0.42)) drop-shadow(0 0 10px rgba(88, 165, 56, 0.28)) saturate(1.05) brightness(0.92) contrast(1.1);
  animation: nefes 4.8s ease-in-out infinite;
}
@keyframes nefes {
  0%, 100% { transform: scale(0.985); opacity: 0.96; }
  50% { transform: scale(1.015); opacity: 1; }
}
/* Wordmark: oyunun ana menüsündekinin aynısı (src/index.css .title-menu__wordmark-img
   ve .title-menu__wordmark-wrap): SVG renk filtresi + parıltı + neon titremesi. */
.giris__wordmark-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  isolation: isolate;
}
.giris__wordmark-wrap::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 70%;
  height: 4px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 0%, rgba(118, 190, 52, 0.36) 50%, transparent 100%);
  filter: blur(3px);
  pointer-events: none;
  opacity: 0.46;
}
.giris__wordmark {
  position: relative;
  z-index: 1;
  display: block;
  width: min(430px, 86vw);
  height: auto;
  margin-top: -6px;
  -webkit-filter: url(#psy-wordmark-neon) brightness(1.15)
    drop-shadow(0 0 3px rgba(174, 232, 86, 0.68))
    drop-shadow(0 0 11px rgba(129, 195, 68, 0.5))
    drop-shadow(0 0 26px rgba(49, 85, 36, 0.2));
  filter: url(#psy-wordmark-neon) brightness(1.15)
    drop-shadow(0 0 3px rgba(174, 232, 86, 0.68))
    drop-shadow(0 0 11px rgba(129, 195, 68, 0.5))
    drop-shadow(0 0 26px rgba(49, 85, 36, 0.2));
  animation: wordmark-titre 4s ease-in-out infinite;
}
@keyframes wordmark-titre {
  0%, 100% { opacity: 1; }
  17% { opacity: 1; }
  18% { opacity: 0.88; }
  19% { opacity: 1; }
  42% { opacity: 1; }
  43% { opacity: 0.86; }
  44% { opacity: 1; }
  66% { opacity: 0.94; }
  67% { opacity: 1; }
  83% { opacity: 0.9; }
  84% { opacity: 1; }
}

.giris__ileti {
  margin: 0;
  max-width: 34em;
  padding: 12px 16px;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: #f1e3c4;
  background: rgba(20, 14, 4, 0.72);
  border: 1px solid rgba(226, 180, 90, 0.5);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  text-wrap: balance;
}

.giris__dugmeler {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 3.4vh, 36px);
  width: 100%;
}
.giris__dugme {
  position: relative;
  display: inline-flex;
  justify-content: center;
  /* Sondaki harf aralığını sol dolguyla dengele: text-indent yalnız ilk satırı
     kaydırıp kırılan yazıyı yamuk gösteriyordu, dolgu her satırı ortalar. */
  padding: 8px 12px 8px calc(12px + 0.34em);
  color: rgba(228, 234, 222, 0.9);
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
  font-weight: 300;
  font-size: clamp(19px, 2.1vw, 34px);
  letter-spacing: 0.34em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.92), 0 0 22px rgba(0, 0, 0, 0.75);
  transition: color 0.2s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.giris__dugme--ikinci { font-size: clamp(14px, 1.3vw, 21px); color: var(--soluk); }
.giris__dugme::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  transform: translateX(-50%);
  background: var(--neon);
  box-shadow: 0 0 8px rgba(88, 165, 56, 0.85), 0 0 18px rgba(88, 165, 56, 0.45);
  opacity: 0;
  transition: width 0.24s ease, opacity 0.18s ease;
}
.giris__dugme:hover, .giris__dugme:focus-visible { color: #fff; transform: scale(1.06); outline: none; }
.giris__dugme:hover::after, .giris__dugme:focus-visible::after { width: 46%; opacity: 1; }

.giris__not {
  margin: 0;
  max-width: 36em;
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
  color: var(--soluk);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  text-wrap: balance;
}

.giris__alt {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--soluk);
}
.giris__alt a { color: var(--soluk); text-decoration: none; }
.giris__alt a:hover { color: var(--neon-acik); }

/* Telefon yatay: kısa ekranda marka küçülür, düğmeler sıkışır. */
@media (max-height: 520px) {
  .giris__atom { width: 72px; }
  .giris__wordmark { width: min(300px, 50vw); }
  .giris__orta { gap: 10px; padding-block: 0; }
  .giris__dugmeler { gap: 8px; }
  .giris__not { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .giris__atom, .giris__wordmark { animation: none; }
  .giris__dugme { transition: none; }
}
