/* UORoots tarayıcı istemcisi — giriş sayfası (Moongate Gecesi, uoroots.com ile aynı dil).
   index.html'deki uonexus stillerinin üstüne yazar; turkcele.py <head> sonuna bağlar, paketle.py görselleri ve
   yazı tiplerini web/public'ten bu klasöre kopyalar. Oyun başladığında (body.in-game) yalnız yeni sürüm şeridi görünebilir. */

@font-face { font-family: 'Cinzel'; font-weight: 400; font-display: swap; src: url('cinzel-v26-latin_latin-ext-regular.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 700; font-display: swap; src: url('cinzel-v26-latin_latin-ext-700.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 400; font-display: swap; src: url('eb-garamond-v33-latin_latin-ext-regular.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 600; font-display: swap; src: url('eb-garamond-v33-latin_latin-ext-600.woff2') format('woff2'); }

:root {
  --uor-gece: #0b0907;
  --uor-altin: #d4a94f;
  --uor-altin-acik: #ebd39a;
  --uor-metin: #e8dcc0;
  --uor-soluk: #a8987a;
  --uor-cizgi: #5a4424;
  --uor-baslik: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --uor-govde: 'EB Garamond', Garamond, Georgia, serif;
}

html, body {
  background-color: var(--uor-gece);
  background-image:
    radial-gradient(ellipse at 50% 40%, rgba(11, 9, 7, 0.25) 0%, rgba(11, 9, 7, 0.82) 75%),
    url('sahne.jpg');
  background-size: cover;
  background-position: center 30%;
  color: var(--uor-metin);
  font-family: var(--uor-govde);
}
body.in-game { background-image: none; }

#banner { display: none; }

/* ── Panel: sitedeki altın çerçeveli ahşap levha ── */
#sso-panel, #sso-user {
  position: relative;
  isolation: isolate;
  width: 500px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  gap: 16px;
  padding: 6px 14px 10px;
  border: 44px solid transparent;
  border-image: url('cerceve.png') 180 / 44px stretch;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
#sso-panel::before, #sso-user::before {
  content: '';
  position: absolute;
  inset: -30px;
  z-index: -1;
  border-radius: 14px;
  background:
    linear-gradient(rgba(11, 9, 7, 0.66), rgba(11, 9, 7, 0.66)),
    url('panel.jpg') center / 520px;
}

.uor-logo {
  width: min(340px, 72vw);
  height: auto;
  margin: 0 auto 2px;
  filter: drop-shadow(0 4px 12px #000);
}
#loader #sso-panel .title, #loader #sso-user .title { display: none; }

#loader .sso-tagline {
  font-size: 17px;
  line-height: 1.45;
  color: var(--uor-metin);
  margin: 0;
  text-shadow: none;
}
.sso-desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--uor-soluk);
  text-shadow: none;
}
.sso-desc strong { color: var(--uor-altin-acik); }
#sso-panel a, #sso-user a { color: var(--uor-altin-acik); text-underline-offset: 3px; }

/* OYNA: sitenin altın levha düğmesi */
#sso-continue, #play-game {
  width: auto;
  min-width: 15rem;
  padding: 1.05rem 3.2rem 0.9rem;
  border: 0;
  border-radius: 0;
  background: url('levha.png') center / 100% 100% no-repeat;
  color: #2a180a;
  font-family: var(--uor-baslik);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #f8e7b855;
  filter: drop-shadow(0 0 10px #e8b86030);
  transition: filter 0.2s, transform 0.1s;
}
#sso-continue:hover, #play-game:hover {
  color: #2a180a;
  background: url('levha.png') center / 100% 100% no-repeat;
  filter: brightness(1.12) drop-shadow(0 0 18px #f0c47090);
}
#sso-continue:active, #play-game:active { transform: scale(0.985, 0.97); }
#sso-continue:disabled, #play-game:disabled { filter: grayscale(0.6) brightness(0.8); }

.discord-signout { color: var(--uor-soluk); font-size: 14px; }

/* ── Masaüstü istemcisi: öne çıkan kutu ── */
.uor-masaustu {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px 16px;
  border: 1px solid var(--uor-cizgi);
  border-top: 2px solid var(--uor-altin);
  background: rgba(11, 9, 7, 0.55);
  text-align: center;
}
.uor-masaustu-baslik {
  font-family: var(--uor-baslik);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--uor-altin-acik);
}
.uor-masaustu p {
  margin: 6px 0 12px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--uor-metin);
}
a.uor-masaustu-dugme, #sso-panel a.uor-masaustu-dugme, #sso-user a.uor-masaustu-dugme, #mobile-splash a.uor-masaustu-dugme {
  display: inline-block;
  padding: 8px 22px;
  border: 1px solid var(--uor-altin);
  background: rgba(212, 169, 79, 0.12);
  color: var(--uor-altin-acik);
  font-family: var(--uor-baslik);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
a.uor-masaustu-dugme:hover, #sso-panel a.uor-masaustu-dugme:hover, #sso-user a.uor-masaustu-dugme:hover {
  background: var(--uor-altin);
  color: #2a180a;
}

.sso-cache-note {
  font-size: 14px;
  color: var(--uor-soluk);
  text-shadow: none;
}
.uor-acik-kaynak {
  margin: 0;
  font-size: 13px;
  color: var(--uor-soluk);
  opacity: 0.8;
}
.uor-acik-kaynak a { color: var(--uor-soluk) !important; }

/* ── Yükleme ekranı ── */
#loader .status { font-family: var(--uor-govde); font-size: 17px; color: var(--uor-metin); }
#loader .bar { border-color: var(--uor-cizgi); }

/* ── Kenardaki Yardım sekmesi, alt satır, telefon ekranı ── */
#faq-toggle { font-family: var(--uor-baslik) !important; }
#footer { font-family: var(--uor-govde); text-transform: none; letter-spacing: 0.02em; font-size: 14px; }
#mobile-splash .title, #mobile-splash .subtitle, #loader .subtitle { font-family: var(--uor-baslik); }
#mobile-splash .pitch { font-family: var(--uor-govde); font-size: 17px; }

/* Dar ekranda kalın çerçeve içeriği sıkıştırmasın (site ile aynı eşik). */
@media (max-width: 639px) {
  #sso-panel, #sso-user {
    border-width: 22px;
    border-image-width: 22px;
    padding: 4px 4px 8px;
  }
  #sso-panel::before, #sso-user::before { inset: -16px; }
  #sso-continue, #play-game { min-width: 12rem; padding: 0.9rem 2rem 0.8rem; }
}
/* Alçak pencerede panel sığsın. */
@media (max-height: 760px) {
  .uor-logo { width: min(260px, 60vw); }
  #sso-panel, #sso-user { gap: 10px; }
  .uor-masaustu p { margin: 4px 0 8px; }
}

/* ── Yeni sürüm şeridi (oyun sırasında da görünür; tuvalin üstünde, küçük) ── */
#uor-yeni-surum {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10060;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--uor-altin);
  background: rgba(11, 9, 7, 0.92);
  color: var(--uor-metin);
  font-family: var(--uor-govde);
  font-size: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}
#uor-yeni-surum[hidden] { display: none !important; }
#uor-yeni-surum button {
  flex-shrink: 0;
  border: 0;
  background: none;
  color: var(--uor-altin-acik);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
