/* Okerum sitesi — oyunla aynı palet: gece laciverti, altın, mücevher tonları */
:root {
  --bg: #0b0d1a;
  --bg-2: #11152a;
  --panel: rgba(17, 21, 42, 0.86);
  --panel-2: #181d38;
  --line: #2d3462;
  --line-bright: #4b5596;
  --ink: #eef0f8;
  --muted: #9aa3c7;
  --gold: #e0b35a;
  --gold-2: #f6d88e;
  --cyan: #4fb3ff;
  --purple: #8a5cf6;
  --red: #ff8a80;
  --radius: 16px;
  --serif: Georgia, Cambria, "Noto Serif", "Times New Roman", serif;
  --sans: "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 12px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
main { flex: 1; outline: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- üst çubuk */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 13, 26, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(75, 85, 150, 0.35);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); color: var(--gold); font-size: 22px; letter-spacing: 1px; }
.brand-text small { font-size: 9px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.brand.small { gap: 8px; font-family: var(--serif); color: var(--gold); font-size: 18px; }
.brand.small img { width: 28px; height: 28px; }
.nav { display: flex; gap: 6px; margin-left: 8px; }
.nav a { color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a.active { color: var(--ink); background: rgba(138, 92, 246, 0.14); }
.account { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.menu-toggle { display: none; }

.chip {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 14px 4px 4px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line-bright); color: var(--ink);
  font-weight: 600;
}
.chip:hover { border-color: var(--cyan); color: var(--ink); }
.chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold); }

/* ---------------------------------------------------------------- düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 12px;
  font: 700 15px/1 var(--sans); letter-spacing: 0.3px;
  border: 1px solid var(--line-bright); background: var(--panel-2); color: var(--ink);
  cursor: pointer; transition: transform .15s, border-color .15s, background .15s;
}
.btn:hover { border-color: var(--cyan); color: var(--ink); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(180deg, #e8bb5e, #c9963c); border-color: var(--gold-2); color: #1b1406; }
.btn.primary:hover { background: linear-gradient(180deg, #f2c86c, #d6a64a); color: #1b1406; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------------------------------------------------------------- açılış */
.hero {
  position: relative; overflow: hidden;
  background: url("/img/background.jpg") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(138, 92, 246, 0.18), transparent 60%),
    linear-gradient(90deg, rgba(11, 13, 26, 0.94) 0%, rgba(11, 13, 26, 0.72) 55%, rgba(11, 13, 26, 0.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  gap: 40px; min-height: min(640px, 82vh); padding: 56px 0 72px;
}
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(48px, 8vw, 88px); color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; text-shadow: 0 6px 30px rgba(224, 179, 90, 0.25); }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: #d6dbef; max-width: 520px; margin-bottom: 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 14px; }
.meta span::before { content: "◆"; color: var(--gold); margin-right: 8px; font-size: 10px; }

.fan { position: relative; height: 380px; --step: 78px; }
.fan img {
  position: absolute; left: 50%; bottom: 30px; width: 150px;
  border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  transform-origin: 50% 100%;
  transition: transform .35s;
}
/* Kartlar soldan sağa üst üste biner; her biri açıkça görünür */
.fan img:nth-child(1) { z-index: 1; transform: translateX(calc(-50% - 2 * var(--step))) translateY(18px) rotate(-18deg); }
.fan img:nth-child(2) { z-index: 2; transform: translateX(calc(-50% - var(--step))) translateY(4px) rotate(-9deg); }
.fan img:nth-child(3) { z-index: 3; transform: translateX(-50%) rotate(0deg); }
.fan img:nth-child(4) { z-index: 4; transform: translateX(calc(-50% + var(--step))) translateY(4px) rotate(9deg); }
.fan img:nth-child(5) { z-index: 5; transform: translateX(calc(-50% + 2 * var(--step))) translateY(18px) rotate(18deg); }
.fan:hover { --step: 92px; }

/* ---------------------------------------------------------------- bölümler */
.section { padding: 72px 0; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(24, 29, 56, 0.55), transparent); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.grid { display: grid; gap: 18px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative;
}
.card h3 { font-size: 22px; }
.card.glow { transition: border-color .2s, transform .2s, box-shadow .2s; }
.card.glow:hover { border-color: var(--line-bright); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.card .icon { width: 64px; height: 64px; margin-bottom: 14px; }
.card .tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(224, 179, 90, 0.6); border-radius: 999px; padding: 3px 10px;
}

.ability { text-align: center; }
.ability img { width: 96px; height: 96px; margin: 0 auto 12px; }
.cost { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #1b1406; background: var(--gold); border-radius: 999px; padding: 2px 12px; font-size: 13px; margin-bottom: 10px; }

.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.person { text-align: center; }
.hex {
  width: 140px; aspect-ratio: 1; margin: 0 auto 12px;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: var(--line-bright); padding: 3px;
}
.hex img { width: 100%; height: 100%; object-fit: cover; clip-path: inherit; }
.hex.gold { background: var(--gold); }

.band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 36px; border-radius: 22px;
  background: linear-gradient(120deg, rgba(138, 92, 246, 0.22), rgba(79, 179, 255, 0.12)), var(--panel);
  border: 1px solid var(--line-bright);
}
.band h2 { margin: 0 0 6px; }

/* ---------------------------------------------------------------- sayfa başlığı */
.page-head { padding: 48px 0 18px; }
.page-head h1 { font-size: clamp(34px, 5vw, 48px); color: var(--gold); }

.rules { display: grid; gap: 16px; max-width: 820px; }
.rules .card h3 { color: var(--gold); font-size: 20px; }

/* ---------------------------------------------------------------- indirme */
.platform { display: flex; flex-direction: column; gap: 12px; }
.platform .icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-bright); font-size: 28px; }
.platform .spec { color: var(--muted); font-size: 14px; }
.platform .btn { margin-top: auto; }
.hash { font-family: Consolas, "Courier New", monospace; font-size: 11px; color: var(--muted); word-break: break-all; }
.note { border-left: 3px solid var(--gold); padding: 12px 16px; background: rgba(224, 179, 90, 0.08); border-radius: 8px; color: #d6dbef; }

/* ---------------------------------------------------------------- formlar */
.auth { display: grid; place-items: center; padding: 56px 0 80px; }
.auth .card { width: min(440px, 100%); padding: 32px; }
.auth h1 { font-size: 32px; text-align: center; }
.auth .sub { text-align: center; color: var(--muted); margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; color: #d6dbef; }
.field input {
  height: 48px; padding: 0 14px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line-bright); color: var(--ink);
  font: 16px var(--sans);
}
.field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(79, 179, 255, 0.18); }
.hint { font-size: 13px; color: var(--muted); }
.error { color: var(--red); font-size: 14px; min-height: 20px; margin: 4px 0 12px; }
.switch { text-align: center; margin-top: 18px; color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- profil */
.profile-head { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.profile-head .hex { width: 130px; margin: 0; }
.profile-head h1 { font-size: 40px; margin-bottom: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.stat { text-align: center; padding: 18px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; }
.stat b { display: block; font-family: var(--serif); font-size: 34px; color: var(--gold); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 13px; }
.avatars { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.avatar-pick { background: none; border: 0; color: var(--muted); cursor: pointer; font: 600 13px var(--sans); padding: 0; }
.avatar-pick .hex { width: 96px; margin-bottom: 8px; }
.avatar-pick:hover .hex { background: var(--cyan); }
.avatar-pick.selected { color: var(--gold); }
.avatar-pick.selected .hex { background: var(--gold); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- arkadaşlar */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn.upload { margin-top: 18px; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { margin-bottom: 0; }
.grow { flex: 1; min-width: 0; }
.friends { display: grid; gap: 16px; }
.person-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.person-row:first-of-type { border-top: 0; }
.person-row .hex { width: 52px; margin: 0; }
.person-row strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.presence { font-size: 13px; color: var(--muted); }
.presence.online { color: #4ade80; }
.presence.game { color: var(--gold); }

/* ---------------------------------------------------------------- alt çubuk */
.footer { border-top: 1px solid rgba(75, 85, 150, 0.35); padding: 26px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; font-size: 14px; }
.status::before { content: "●"; margin: 0 6px 0 10px; color: var(--muted); }
.status.ok::before { color: #4ade80; }
.status.down::before { color: var(--red); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--panel-2); border: 1px solid var(--line-bright); border-radius: 12px;
  padding: 12px 18px; z-index: 50; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ---------------------------------------------------------------- dil seçimi */
.langs { display: flex; gap: 4px; }
.lang { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 4px 10px; font: 600 13px var(--sans); cursor: pointer; }
.lang:hover { color: var(--ink); border-color: var(--line-bright); }
.lang.active { color: var(--gold); border-color: var(--gold); }

/* ---------------------------------------------------------------- mobil */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 36px; }
  .hero .lead { margin-inline: auto; }
  .cta, .meta { justify-content: center; }
  .fan { height: 300px; --step: 58px; }
  .fan:hover { --step: 66px; }
  .fan img { width: 118px; }
  .grid.four, .people { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: 4px; padding: 0 10px;
    background: var(--panel-2); border: 1px solid var(--line-bright); border-radius: 12px; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: rgba(11, 13, 26, 0.97); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; margin: 0;
  }
  .nav.open { display: flex; }
  .account { margin-left: auto; }
  .account .btn.secondary-auth { display: none; }
  .chip span { display: none; }
  .chip { padding: 4px; }
  .grid.two, .stats { grid-template-columns: 1fr; }
  .grid.four, .people { grid-template-columns: 1fr 1fr; }
  .band { padding: 24px; text-align: center; justify-content: center; }
  .section { padding: 52px 0; }
  .brand-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* satın alma */
.price { font-family: var(--serif, Georgia, serif); font-size: 40px; color: var(--gold); margin: 4px 0 12px; }
.owned { color: #7fe0a8; font-weight: 600; }
.buy-action { display: grid; gap: 12px; }
.buy-action .row { display: flex; flex-wrap: wrap; gap: 10px; }
.redeem { margin-top: 14px; }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 26px; position: relative; color: #d6dbef; }
.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
