    :root {
  --bg-deep: #0f1b2d;
  --panel: #16273d;
  --panel-2: #1d3350;
  --gold: #f0b537;
  --gold-2: #e29a1c;
  --ink: #eaf1fb;
  --ink-muted: #9fb2c9;
  --line: rgba(255, 255, 255, 0.12);
  --wa: #25d366;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg-deep);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ============ ARKA PLAN ============ */
.bg-scene {
  position: fixed;
  inset: 0;
  background: url("../image/evrenia-bg.webp") center/cover no-repeat;
  z-index: -2;
  animation: slowZoom 30s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(15, 27, 45, 0.15) 0%, rgba(15, 27, 45, 0.75) 60%, rgba(15, 27, 45, 0.95) 100%),
    linear-gradient(180deg, rgba(15, 27, 45, 0.35) 0%, rgba(15, 27, 45, 0.55) 100%);
}

/* ============ ÜST BAR ============ */
.topbar {
  position: relative;
  z-index: 5;
  padding: 1rem 0;
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mini-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #2a1a00;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(240, 181, 55, 0.35);
}

.brand-mini-text {
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 1.05rem;
}

.topbar-links {
  display: flex;
  gap: 1.5rem;
}

.topbar-link {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.topbar-link:hover { color: var(--gold); }

/* ============ SAHNE ============ */
.stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2.5rem;
  gap: 1.5rem;
}

.logo-wrap {
  text-align: center;
  animation: dropIn 0.7s ease both;
}

.game-logo {
  font-family: "Cinzel", serif;
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 5.5rem);
  letter-spacing: 4px;
  margin: 0;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 2px 0 #b9821a,
    0 4px 0 #96690f,
    0 10px 30px rgba(0, 0, 0, 0.55);
  background: linear-gradient(180deg, #fff2cf 0%, #f0b537 55%, #d98c14 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.game-tagline {
  font-family: "Cinzel", serif;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  color: var(--ink);
  margin: 0.5rem 0 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* ============ AUTH KART ============ */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, rgba(29, 51, 80, 0.92), rgba(22, 39, 61, 0.94));
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  animation: dropIn 0.7s 0.1s ease both;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sekmeler */
.auth-tabs {
  display: flex;
  padding: 0.5rem 0.5rem 0;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.15);
}

.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 0.5rem;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab:hover { color: var(--ink); }

.auth-tab.active {
  color: #2a1a00;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  box-shadow: 0 -2px 10px rgba(240, 181, 55, 0.3);
}

/* Panel */
.auth-panel { padding: 1.6rem 1.6rem 1.4rem; }
.auth-panel[hidden] { display: none; }

.panel-head { margin-bottom: 1.2rem; }
.panel-head h2 {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 0 0.25rem;
}
.panel-head p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Alanlar */
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder { color: rgba(159, 178, 201, 0.55); }

.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 181, 55, 0.18);
}

.field input.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 3rem; }
.pass-toggle {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--ink-muted);
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  border-radius: 8px;
}
.pass-toggle:hover { color: var(--gold); }

.field-error {
  display: block;
  color: var(--danger);
  font-size: 0.78rem;
  margin-top: 0.35rem;
  min-height: 0;
}

/* Satır (hatırla + şifremi unuttum) */
.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  cursor: pointer;
  margin: 0;
}
.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}
.check-terms {
  align-items: flex-start;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.check-terms input { margin-top: 2px; }

.link-muted {
  color: var(--ink-muted);
  text-decoration: underline;
  font-size: 0.85rem;
}
.link-muted:hover { color: var(--gold); }

/* Ana buton */
.btn-primary {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 1rem;
  color: #2a1a00;
  background: linear-gradient(180deg, #ffd873, var(--gold) 45%, var(--gold-2));
  box-shadow: 0 8px 22px rgba(240, 181, 55, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.2s, filter 0.2s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(240, 181, 55, 0.45);
}
.btn-primary:active { transform: translateY(0); }
.btn-play {
  background: linear-gradient(180deg, #6fe89a, var(--wa) 45%, #17a94e);
  color: #04220f;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-play:hover {
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

/* Alt geçiş */
.switch-hint {
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 1.1rem 0 0;
}
.link-switch {
  background: none;
  border: none;
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.link-switch:hover { color: #ffd873; }

.stage-foot {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.8rem;
  max-width: 420px;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 575.98px) {
  .topbar-links { gap: 1rem; }
  .topbar-link { font-size: 0.82rem; }
  .auth-panel { padding: 1.3rem 1.2rem 1.2rem; }
}

@media (max-width: 380px) {
  .topbar-links { display: none; }
}
