:root {
  --bg: #0b0a0d;
  --bg2: #141217;
  --card: #17141b;
  --line: #2a2530;
  --text: #e9e4dc;
  --muted: #9a92a0;
  --gold: #e8b54a;
  --gold2: #f6d58a;
  --green: #1fb36b;
  --red: #e0453a;
  --blue: #3c8ce7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Poppins", system-ui, sans-serif; line-height: 1.55; padding-bottom: 44px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Cinzel", serif; margin: 0; letter-spacing: .5px; }
.gold { color: var(--gold); }

/* üst menü */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 12px 16px; }
.nav-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 18px; background: rgba(15, 13, 18, .82); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-main { font-family: "Cinzel", serif; font-weight: 800; font-size: 22px; letter-spacing: 2px; background: linear-gradient(180deg, var(--gold2), var(--gold) 55%, #9c6b1f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-main.big { font-size: clamp(34px, 6vw, 64px); }
.logo-sub { font-size: 9px; letter-spacing: 3px; color: var(--muted); margin-top: 3px; }
.menu { display: flex; gap: 22px; margin-left: 18px; font-size: 14px; font-weight: 500; }
.menu a { color: var(--muted); transition: color .2s; }
.menu a:hover { color: var(--gold); }
.btn-green { margin-left: auto; background: var(--green); color: #fff; font-weight: 700; font-size: 13px; padding: 10px 16px; border-radius: 10px; box-shadow: 0 6px 18px rgba(31, 179, 107, .3); white-space: nowrap; }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--gold); font-size: 20px; border-radius: 8px; padding: 4px 10px; cursor: pointer; }

/* giriş görseli */
.hero { position: relative; min-height: 92vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
/* resim tüm genişlikte (geniş ekranda solda boş siyah şerit kalmasın); yazının olduğu sol taraf koyulaştırılır */
.hero-bg { position: absolute; inset: 0; background: url("images/hero.jpg") right 30% / cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(11,10,13,.92) 22%, rgba(11,10,13,.55) 45%, rgba(11,10,13,.1) 70%, rgba(11,10,13,.3) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero-in { position: relative; max-width: 1180px; width: 100%; margin: 0 auto; padding: 120px 24px 80px; }
.kicker { color: var(--gold); letter-spacing: 4px; font-size: 13px; font-weight: 600; margin: 0 0 14px; }
.hero h1 { font-size: clamp(40px, 7vw, 84px); line-height: 1.05; text-shadow: 0 4px 24px rgba(0,0,0,.6); }
.lead { max-width: 460px; color: #d4ccd8; font-size: 17px; margin: 18px 0 28px; }
.dl { display: flex; gap: 14px; flex-wrap: wrap; }
.store { display: flex; align-items: center; gap: 12px; min-width: 170px; padding: 12px 18px; border-radius: 12px; background: rgba(20, 18, 23, .85); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, transform .2s; }
.store:hover { border-color: var(--gold); transform: translateY(-2px); }
.store .ico { width: 30px; display: flex; justify-content: center; }
.store small { display: block; font-size: 10px; color: var(--muted); }
.store b { font-size: 19px; }
.store.soon { opacity: .6; cursor: default; }
.store.soon small::after { content: " · Yakında"; color: var(--gold); }

.ticker { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(20, 18, 23, .9); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-block; padding: 14px 0; animation: tick 40s linear infinite; font-family: "Cinzel", serif; font-weight: 800; letter-spacing: 3px; color: #4a4250; }
.ticker-track span { margin: 0 22px; }
.ticker-track .s { color: var(--gold); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* bölümler */
.sec { max-width: 1180px; margin: 0 auto; padding: 90px 24px 10px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.num { color: var(--gold); font-weight: 700; letter-spacing: 2px; font-size: 13px; }
.line { width: 60px; height: 1px; background: var(--gold); opacity: .6; }
.sec h2 { font-size: clamp(30px, 4vw, 46px); }
.sub { color: var(--muted); margin: 6px 0 28px; }
.card { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-radius: 18px; }

.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-item { overflow: hidden; display: flex; flex-direction: column; }
.news-item .img { aspect-ratio: 16/9; background: center / cover; position: relative; }
.news-item .tag { position: absolute; top: 12px; left: 12px; background: var(--gold); color: #1a1205; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; letter-spacing: 1px; }
.news-item .body { padding: 18px; }
.news-item .date { color: var(--muted); font-size: 12px; }
.news-item h3 { font-size: 18px; margin: 6px 0 8px; }
.news-item p { color: #c2bac6; font-size: 14px; margin: 0; }

.ranks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.table-card { padding: 20px; overflow-x: auto; }
.table-card h3 { font-size: 18px; margin-bottom: 12px; color: var(--gold); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
td { padding: 10px 6px; border-bottom: 1px solid rgba(42, 37, 48, .6); }
td.r1 { color: var(--gold2); font-weight: 700; }
.race { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px; }
.race.KARUS { background: rgba(224, 69, 58, .15); color: #ff7a6e; }
.race.HUMAN { background: rgba(60, 140, 231, .15); color: #7db4ff; }
.empty { color: var(--muted); text-align: center; padding: 26px 0; }

.classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cls { padding: 24px 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, #1d1922, #121015); position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
.cls:hover { border-color: var(--gold); transform: translateY(-4px); }
.cls-n { position: absolute; right: 14px; top: 6px; font-family: "Cinzel", serif; font-size: 54px; color: rgba(232, 181, 74, .1); font-weight: 800; }
.cls h3 { font-size: 22px; color: var(--gold); margin: 6px 0 10px; }
.cls p { color: #c2bac6; font-size: 14px; margin: 0; }

.ann { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ann-item { padding: 18px 20px; display: flex; gap: 16px; align-items: flex-start; }
.ann-item .d { color: var(--gold); font-size: 12px; font-weight: 600; white-space: nowrap; padding-top: 3px; }
.ann-item h3 { font-size: 16px; margin-bottom: 4px; }
.ann-item p { margin: 0; color: #c2bac6; font-size: 14px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; aspect-ratio: 16/9; background: center / cover; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(0deg, rgba(0,0,0,.8), transparent); font-size: 13px; font-weight: 600; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }

.download { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; padding: 40px; align-items: center; overflow: hidden; }
.feat { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.feat div { display: flex; flex-direction: column; font-size: 13px; }
.feat span { color: var(--muted); }
.badge { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(232,181,74,.25); box-shadow: inset 0 0 80px rgba(232,181,74,.08); max-width: 340px; margin: 0 auto; width: 100%; }
.discord { margin-top: 20px; padding: 26px 30px; display: flex; align-items: center; gap: 20px; background: linear-gradient(120deg, #23214a, #15142b); }
.dc-ico { font-size: 34px; background: #5865f2; width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dc-txt h3 { font-size: 22px; }
.dc-txt p { margin: 4px 0 0; color: #c0bfe0; font-size: 14px; }
.btn-discord { margin-left: auto; background: #5865f2; color: #fff; font-weight: 600; padding: 12px 20px; border-radius: 12px; white-space: nowrap; cursor: pointer; }
.btn-discord.soon { opacity: .6; cursor: default; }

.footer { margin-top: 90px; border-top: 1px solid var(--line); background: var(--bg2); }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 36px 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-in p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.foot-links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.foot-links a:hover { color: var(--gold); }
.copy { text-align: center; color: #5f5865; font-size: 12px; padding: 0 16px 24px; margin: 0; }

.statusbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 22px; align-items: center; padding: 10px 20px; background: rgba(12, 11, 14, .95); border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--muted); overflow-x: auto; white-space: nowrap; }
.statusbar .right { margin-left: auto; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #666; margin-right: 7px; vertical-align: 1px; }
.dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.red { background: var(--red); }
.dot.blue { background: var(--blue); }

@media (max-width: 960px) {
  .menu { display: none; position: absolute; top: 70px; left: 16px; right: 16px; flex-direction: column; gap: 0; margin: 0; background: rgba(15,13,18,.97); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
  .menu.open { display: flex; }
  .menu a { padding: 12px; }
  .burger { display: block; }
  .news, .classes { grid-template-columns: 1fr 1fr; }
  .ranks, .ann, .download { grid-template-columns: 1fr; }
  .badge { display: none; }
  .hero-bg { background-position: 70% 30%; }
}
@media (max-width: 600px) {
  .btn-green { padding: 8px 10px; font-size: 11px; }
  .news, .classes, .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 16/9; }
  .download { padding: 24px; }
  .discord { flex-direction: column; align-items: flex-start; }
  .btn-discord { margin-left: 0; }
  .hero-bg { inset: 0; background-position: 58% 30%; opacity: .45; }
}

/* hesap: üst menü */
.auth { display: flex; gap: 8px; align-items: center; margin-left: auto; position: relative; }
.auth + .btn-green { margin-left: 0; }
.btn-line, .btn-gold { font-family: inherit; font-weight: 600; font-size: 13px; padding: 9px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.btn-line { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); border: 0; color: #1a1205; }
.btn-gold:disabled { opacity: .6; cursor: wait; }
.user-chip { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: 5px 10px 5px 5px; cursor: pointer; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; }
.avatar { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1205; display: flex; align-items: center; justify-content: center; font-weight: 800; text-transform: uppercase; }
.avatar.big { width: 72px; height: 72px; font-size: 32px; border-radius: 16px; }
.dropdown { position: absolute; right: 0; top: 46px; min-width: 180px; background: #17141b; border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: none; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.dropdown.open { display: block; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.dropdown a:hover { background: rgba(232,181,74,.1); color: var(--gold); }

/* giriş / kayıt penceresi */
.modal { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.75); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { width: 100%; max-width: 420px; padding: 26px; position: relative; }
.modal-x { position: absolute; right: 12px; top: 10px; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; background: rgba(255,255,255,.04); padding: 4px; border-radius: 12px; }
.tabs button { flex: 1; background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; padding: 10px; border-radius: 9px; cursor: pointer; }
.tabs button.on { background: var(--gold); color: #1a1205; }
.form { display: flex; flex-direction: column; gap: 10px; }
.form[hidden] { display: none; }
.form input:not([type=checkbox]) { background: #0f0d12; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 14px; }
.form input:focus { outline: none; border-color: var(--gold); }
.form .btn-gold { padding: 12px; font-size: 15px; margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--gold); }
.msg { margin: 0; min-height: 18px; font-size: 13px; color: #ff8a7a; }
.msg.ok { color: #6fe0a0; }
.hint { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }

/* profil paneli (#profil, #profil/karakterler, #profil/sifre) */
.profile { padding-top: 110px; }
.profile[hidden] { display: none; }
.panel-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.panel-title { font-size: clamp(26px, 4vw, 38px); }
.panel-top .sub { margin: 6px 0 0; }
.back { color: var(--muted); font-size: 14px; white-space: nowrap; }
.back:hover { color: var(--gold); }
.panel { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.panel-nav { padding: 10px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 96px; }
.panel-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid transparent; transition: background .2s, color .2s; }
.panel-nav a:hover { color: var(--text); background: rgba(255,255,255,.03); }
.panel-nav a.on { color: var(--gold); background: rgba(232,181,74,.08); border-color: rgba(232,181,74,.25); }
.panel-nav a.out { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 14px; }
.panel-nav a.out:hover { color: #ff8a7a; }
.pi { width: 22px; text-align: center; font-size: 15px; }
.panel-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pane { display: flex; flex-direction: column; gap: 20px; }
.pane[hidden] { display: none; }

.prof-head { display: flex; align-items: center; gap: 20px; padding: 24px; background: radial-gradient(120% 140% at 0% 0%, rgba(232,181,74,.14), transparent 55%), linear-gradient(180deg, var(--card), var(--bg2)); }
.prof-who { min-width: 0; flex: 1; }
.prof-head h1 { font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(24px, 4vw, 32px); word-break: break-all; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.status, .pill-b { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.status { background: rgba(31,179,107,.15); color: #6fe0a0; border: 1px solid rgba(31,179,107,.35); }
.status.bad { background: rgba(224,69,58,.15); color: #ff7a6e; border-color: rgba(224,69,58,.35); }
.pill-b { background: rgba(232,181,74,.12); color: var(--gold2); border: 1px solid rgba(232,181,74,.35); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.chips span { background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-size: 13px; }
.chips small { color: var(--muted); margin-right: 8px; }

.prof-info, .prof-stats, .prof-sec { padding: 22px; }
.prof-info h3, .prof-stats h3, .prof-sec h3 { font-size: 18px; color: var(--gold); margin-bottom: 14px; }
.prof-info dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.prof-info dl > dt { display: none; }
.prof-info dd { margin: 0; background: #0f0d12; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-weight: 600; font-size: 15px; word-break: break-all; }
.prof-info dd::before { content: attr(data-l); display: block; font-size: 10px; letter-spacing: 1.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; margin-bottom: 4px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.stats > div { background: #0f0d12; border: 1px solid var(--line); border-radius: 12px; padding: 14px 6px; }
.stats b { display: block; font-family: "Cinzel", serif; font-size: 24px; color: var(--gold2); white-space: nowrap; }
.stats span { font-size: 12px; color: var(--muted); }
.note { color: var(--muted); font-size: 13px; margin: -6px 0 14px; }
.prof-sec .form { max-width: 420px; }

.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.char-card { padding: 18px; border-left: 3px solid var(--blue); }
.char-card.ka { border-left-color: var(--red); }
.char-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.char-top h3 { font-family: "Poppins", sans-serif; font-size: 17px; font-weight: 700; word-break: break-all; }
.char-top .race { margin-left: auto; }
.char-ico { width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: "Cinzel", serif; font-weight: 800; font-size: 20px; background: rgba(232,181,74,.12); color: var(--gold); border: 1px solid rgba(232,181,74,.3); }
.char-job { color: var(--muted); font-size: 13px; }
.char-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; text-align: center; }
.char-stats dt { grid-row: 1; font-size: 11px; color: var(--muted); }
.char-stats dd { grid-row: 2; margin: 0; font-weight: 700; color: var(--gold2); background: #0f0d12; border-radius: 8px; padding: 8px 4px; word-break: break-all; font-size: 14px; }
.empty-card { padding: 30px 20px; text-align: center; color: var(--muted); }

body.in-profile .hero, body.in-profile #home { display: none; }
@media (max-width: 960px) {
  .panel { grid-template-columns: 1fr; }
  .panel-nav { position: static; flex-direction: row; overflow-x: auto; padding: 6px; }
  .panel-nav a { white-space: nowrap; padding: 9px 12px; }
  .panel-nav a.out { margin-top: 0; border-top: 0; border-radius: 10px; padding-top: 9px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .auth .btn-line, .auth .btn-gold { padding: 7px 10px; font-size: 12px; }
}
@media (max-width: 600px) {
  .panel-top { flex-direction: column-reverse; align-items: flex-start; }
  .prof-head { flex-direction: column; align-items: flex-start; padding: 20px; }
  .prof-info dl { grid-template-columns: 1fr; }
  .nav-in { gap: 8px; }
  .btn-green { display: none; }
  .user-chip .uname { display: none; }
}
