/* Imperial Roleplay — site teması.
   Oyundaki premium arayüzle aynı dil: koyu cam paneller, imparatorluk altını, ince çizgiler, köşe işaretleri. */

:root {
  --bg: #05070b;
  --bg-2: #0a0d13;
  --panel: rgba(17, 21, 29, .78);
  --panel-2: rgba(23, 28, 38, .86);
  --panel-solid: #11151d;
  --line: rgba(212, 173, 85, .16);
  --line-2: rgba(255, 255, 255, .07);
  --gold: #d4ad55;
  --gold-2: #f0cf7e;
  --gold-dim: rgba(212, 173, 85, .12);
  --text: #ebe8e1;
  --text-2: #c3c6cc;
  --muted: #8a919b;
  --rep: #4f95e6;
  --rep-dim: rgba(79, 149, 230, .14);
  --emp: #d4483d;
  --emp-dim: rgba(212, 72, 61, .14);
  --ok: #5fc48a;
  --warn: #e3b14a;
  --err: #e2665b;
  --info: #6aa8e8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 16px/1.62 var(--body); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--gold-2); text-decoration: none; transition: color .15s; }
a:hover { color: #fff; }
p { margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: .02em; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 4.2vw, 44px); }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
code { font-family: var(--mono); font-size: .88em; color: var(--gold-2); background: var(--gold-dim); padding: 1px 6px; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
::selection { background: rgba(212, 173, 85, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: #120e05; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 12px; }

/* ---------------------------------------------------------------- arka plan */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(1100px 620px at 78% -8%, rgba(212, 173, 85, .10), transparent 62%),
              radial-gradient(900px 600px at -10% 30%, rgba(79, 149, 230, .06), transparent 60%),
              linear-gradient(180deg, #070a10 0%, var(--bg) 55%); }
.stars { position: absolute; inset: -50%; background-repeat: repeat; opacity: .7; }
.stars.s1 { background-image: radial-gradient(1px 1px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,.8), transparent), radial-gradient(1px 1px at 200px 160px, rgba(255,255,255,.6), transparent), radial-gradient(1px 1px at 260px 40px, rgba(255,255,255,.7), transparent), radial-gradient(1.5px 1.5px at 330px 220px, rgba(240,207,126,.8), transparent); background-size: 360px 260px; animation: drift 180s linear infinite; }
.stars.s2 { background-image: radial-gradient(1px 1px at 60px 120px, rgba(255,255,255,.5), transparent), radial-gradient(1px 1px at 170px 20px, rgba(255,255,255,.45), transparent), radial-gradient(1px 1px at 300px 140px, rgba(255,255,255,.5), transparent); background-size: 420px 300px; opacity: .5; animation: drift 300s linear infinite reverse; }
.glow { position: absolute; left: 50%; top: -220px; width: 900px; height: 440px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(212, 173, 85, .08), transparent); }
@keyframes drift { to { transform: translate3d(-180px, 120px, 0); } }

/* ---------------------------------------------------------------- yerleşim */
.wrap, .wrap-wide { width: 100%; margin: 0 auto; padding: 0 16px; }
.wrap { max-width: 1080px; }
.wrap-wide { max-width: 1280px; }
main { flex: 1; padding-top: 34px; padding-bottom: 72px; }
.section { margin-top: 64px; }
.section-head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 22px; }
.section-head .eyebrow { width: 100%; margin: 0; }
.section-title { font-size: clamp(24px, 3vw, 30px); margin: 0; position: relative; }
.section-link { margin-left: auto; font-family: var(--head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.page-title { margin-bottom: 8px; }
.lead { font-size: 18px; color: var(--text-2); max-width: 68ch; margin-bottom: 26px; }
.eyebrow { font-family: var(--head); font-weight: 600; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.gold { color: var(--gold-2); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.ok-text { color: var(--ok); }
.err-text { color: var(--err); }
.mono { font-family: var(--mono); font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-2 > * { min-width: 0; }

.ico { width: 18px; height: 18px; flex: none; }
.ico-sm { width: 14px; height: 14px; vertical-align: -2px; }
.ico-lg { width: 30px; height: 30px; color: var(--gold); }

/* ---------------------------------------------------------------- üst bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(6, 8, 12, .78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(212, 173, 85, .55), transparent); }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); flex: none; }
.brand:hover { color: #fff; }
.brand .emblem { width: 34px; height: 34px; color: var(--gold); transition: transform .6s ease; }
.brand:hover .emblem { transform: rotate(60deg); }
.brand span { font-family: var(--head); font-weight: 700; font-size: 21px; letter-spacing: .2em; line-height: 1; display: flex; flex-direction: column; }
.brand small { font-size: 10.5px; letter-spacing: .5em; color: var(--gold); font-weight: 600; margin-top: 3px; }
.brand.small .emblem { width: 28px; height: 28px; }
.brand.small span { font-size: 17px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: nowrap; }
.nav-link { position: relative; color: var(--text-2); font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.nav-link.active { color: var(--gold-2); }
.nav-link.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 12px rgba(212, 173, 85, .7); }
.nav-staff { color: var(--gold); }
.nav-sep { width: 1px; height: 24px; background: var(--line); margin: 0 8px; }
.nav-user { display: inline-flex; align-items: center; gap: 8px; color: var(--text); padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); max-width: 200px; }
.nav-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 14px; }
.nav-user img { border-radius: 50%; flex: none; }
.nav-user:hover, .nav-user.active { border-color: var(--line); color: #fff; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 9px; width: 42px; height: 38px; padding: 0 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s, border-color .2s, color .2s; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #140f04; box-shadow: 0 0 0 1px rgba(240, 207, 126, .3) inset, 0 10px 30px rgba(212, 173, 85, .22); }
.btn-gold:hover { color: #000; box-shadow: 0 0 0 1px rgba(255, 230, 160, .6) inset, 0 12px 36px rgba(212, 173, 85, .35); }
.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: #fff; border-color: rgba(212, 173, 85, .5); background: var(--gold-dim); }
.btn-danger-ghost { background: transparent; color: var(--err); border-color: rgba(226, 102, 91, .35); }
.btn-danger-ghost:hover { color: #fff; background: rgba(226, 102, 91, .18); border-color: var(--err); }
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 10px 28px rgba(88, 101, 242, .25); }
.btn-discord:hover { background: #6b77f5; color: #fff; }
.btn-steam { background: linear-gradient(180deg, #2a475e, #1b2838); color: #e5eef7; border-color: rgba(102, 192, 244, .35); }
.btn-steam:hover { color: #fff; border-color: #66c0f4; }
.btn-link { background: none; border: 0; padding: 6px 8px; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.btn-link:hover { color: var(--text); }
.btn .ico { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- kartlar ve paneller */
.card, .card-lg, .status-card, .profile, .char, .faction, .event, .legion, .medal, .staff-card, .feature { position: relative; }
.card, .card-lg {
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card-lg { padding: 30px; }
.card::before, .card-lg::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(var(--gold), var(--gold)) left top / 14px 1px, linear-gradient(var(--gold), var(--gold)) left top / 1px 14px,
              linear-gradient(var(--gold), var(--gold)) right bottom / 14px 1px, linear-gradient(var(--gold), var(--gold)) right bottom / 1px 14px;
  background-repeat: no-repeat; opacity: .55; }
:where(main, .char-page, .legion-page, .grid-2 > div) > :is(.card, details, .grid-2, .profile) + :is(.card, details, .grid-2) { margin-top: 18px; }
.grid-2 + .card, .stats + .card, .stats + .grid-2 { margin-top: 18px; }
.card h2 { font-size: 21px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card h3 { font-size: 17px; margin-top: 16px; color: var(--text-2); }
.card time, .news time { display: block; font-family: var(--head); letter-spacing: .14em; text-transform: uppercase; font-size: 12.5px; color: var(--gold); margin-bottom: 6px; }
.center-card { max-width: 560px; margin: 40px auto; text-align: center; }
.big-emblem .emblem { width: 76px; height: 76px; color: var(--gold); margin-bottom: 10px; filter: drop-shadow(0 0 22px rgba(212, 173, 85, .35)); }

/* ---------------------------------------------------------------- uyarılar ve rozetler */
.flash { margin-top: 18px; padding: 13px 16px; border-radius: 11px; border: 1px solid; font-weight: 500; }
.flash-ok { border-color: rgba(95, 196, 138, .35); background: rgba(95, 196, 138, .1); color: #c8f0d8; }
.flash-err { border-color: rgba(226, 102, 91, .4); background: rgba(226, 102, 91, .1); color: #f6cdc8; }
.relay-banner { max-width: 1080px; margin: 16px auto 0; padding: 11px 16px; border-radius: 10px; border: 1px solid rgba(227, 177, 74, .4); background: rgba(227, 177, 74, .1); color: #f4e2b8; font-size: 14px; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text-2); white-space: nowrap; }
.badge.ok { color: #aee6c4; border-color: rgba(95, 196, 138, .35); background: rgba(95, 196, 138, .1); }
.badge.warn { color: #f2d798; border-color: rgba(227, 177, 74, .35); background: rgba(227, 177, 74, .1); }
.badge.err { color: #f3b6af; border-color: rgba(226, 102, 91, .35); background: rgba(226, 102, 91, .1); }
.badge.info { color: #bcd8f6; border-color: rgba(106, 168, 232, .35); background: rgba(106, 168, 232, .1); }
.badge.off { color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: var(--gold-dim); color: var(--gold-2); vertical-align: middle; font-family: var(--body); letter-spacing: 0; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .05); color: var(--text-2); white-space: nowrap; }
.tag-chat { color: #cfd6df; } .tag-connect { color: #9fd3b1; } .tag-death { color: #f0a59d; background: rgba(226, 102, 91, .1); } .tag-rp { color: #d9c3f0; } .tag-gameplay { color: #a9d6e8; } .tag-duty { color: #9fd3b1; background: rgba(95, 196, 138, .1); } .tag-web, .tag-admin { color: var(--gold-2); background: var(--gold-dim); } .tag-rank { color: #bcd8f6; background: rgba(106, 168, 232, .1); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.achv { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13px; background: var(--gold-dim); border: 1px solid var(--line); color: var(--gold-2); }

/* ---------------------------------------------------------------- formlar */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.form small { font-weight: 400; color: var(--muted); font-size: 13px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: rgba(5, 7, 11, .65); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
select option { background: var(--panel-solid); color: var(--text); }
input:hover, select:hover, textarea:hover { border-color: rgba(212, 173, 85, .3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 173, 85, .18); background: rgba(5, 7, 11, .85); }
input::placeholder, textarea::placeholder { color: #626973; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.action-form, .inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.action-form input, .action-form select, .inline-form input { flex: 1 1 160px; width: auto; padding: 8px 11px; font-size: 14px; }
.action-form textarea { flex: 1 1 100%; }
.searchbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.searchbar input, .searchbar select { flex: 1 1 200px; width: auto; }
blockquote { margin: 10px 0; padding: 10px 16px; border-left: 3px solid var(--gold); background: var(--gold-dim); border-radius: 0 8px 8px 0; color: var(--text-2); }
details summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); color: var(--gold); font-weight: 700; }
details[open] summary::before { content: "−"; }

/* ---------------------------------------------------------------- ana sayfa */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 40px; padding: 30px 0 10px; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 18px; }
.hero h1 .gold { background: linear-gradient(180deg, #fff1c8, var(--gold) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; display: grid; place-items: center; }
.hero-art .planet { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #3a3324 0%, #1a1712 38%, #0b0b0c 70%); box-shadow: inset -26px -20px 60px rgba(0, 0, 0, .8), 0 0 80px rgba(212, 173, 85, .14), inset 6px 4px 30px rgba(240, 207, 126, .12); }
.hero-art .ring { position: absolute; width: 96%; height: 30%; border-radius: 50%; border: 1px solid rgba(212, 173, 85, .45); transform: rotate(-18deg); box-shadow: 0 0 30px rgba(212, 173, 85, .12); }
.hero-art .orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(212, 173, 85, .2); }
.hero-art .o1 { inset: 4%; animation: spin 80s linear infinite; }
.hero-art .o2 { inset: 14%; border-style: solid; border-color: rgba(255, 255, 255, .05); animation: spin 120s linear infinite reverse; }
.hero-art .o1::after { content: ""; position: absolute; top: 12%; left: 12%; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 14px var(--gold); }
.hero-art .emblem { position: relative; width: 30%; color: var(--gold-2); filter: drop-shadow(0 0 26px rgba(212, 173, 85, .55)); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.status-card { display: inline-flex; align-items: center; gap: 14px; padding: 13px 18px 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(10, 13, 19, .7); backdrop-filter: blur(8px); }
.status-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--muted); }
.status-dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(95, 196, 138, .15), 0 0 16px rgba(95, 196, 138, .7); animation: pulse 2.4s ease-in-out infinite; }
.status-dot.off { background: var(--err); box-shadow: 0 0 0 4px rgba(226, 102, 91, .12); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(95, 196, 138, .05), 0 0 22px rgba(95, 196, 138, .5); } }
.status-title { font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
.status-sub { color: var(--muted); font-size: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.stats > div { background: linear-gradient(180deg, rgba(20, 24, 33, .95), rgba(12, 15, 21, .95)); padding: 20px 18px; display: grid; gap: 2px; justify-items: start; }
.stats .ico { width: 20px; height: 20px; color: var(--gold); margin-bottom: 8px; opacity: .85; }
.stats b { font-family: var(--head); font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: .02em; }
.stats span { color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-family: var(--head); font-weight: 600; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 22px 20px 20px; border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel-2), var(--panel)); overflow: hidden; }
.steps li::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--gold), transparent); opacity: .7; }
.step-n { position: absolute; right: 16px; top: 10px; font-family: var(--head); font-weight: 700; font-size: 44px; color: rgba(212, 173, 85, .1); line-height: 1; }
.steps h3 { margin: 14px 0 8px; }
.steps p { color: var(--text-2); font-size: 15px; }
.steps a { font-family: var(--head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

.factions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.faction { display: block; padding: 30px 28px; min-height: 210px; border-radius: var(--radius); border: 1px solid var(--line-2); color: var(--text); overflow: hidden; background: var(--panel); transition: transform .2s, border-color .2s, box-shadow .2s; }
.faction::before { content: ""; position: absolute; inset: 0; opacity: .9; pointer-events: none; }
.faction.rep::before { background: radial-gradient(500px 240px at 100% 0%, rgba(79, 149, 230, .28), transparent 70%); }
.faction.emp::before { background: radial-gradient(500px 240px at 100% 0%, rgba(212, 72, 61, .28), transparent 70%); }
.faction > * { position: relative; }
.faction h3 { font-size: 28px; text-transform: uppercase; margin: 12px 0 10px; }
.faction p { color: var(--text-2); max-width: 46ch; }
a.faction:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow); }
a.faction.rep:hover { border-color: rgba(79, 149, 230, .5); }
a.faction.emp:hover { border-color: rgba(212, 72, 61, .5); }
.faction-more { font-family: var(--head); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; color: var(--gold-2); display: inline-flex; gap: 6px; align-items: center; }
.faction-tag { display: inline-block; font-family: var(--head); font-weight: 600; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.rep .faction-tag { color: #8ec0f5; }
.emp .faction-tag { color: #f19a90; }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { display: block; color: var(--text); transition: transform .2s, border-color .2s; }
.feature:hover { color: var(--text); transform: translateY(-3px); border-color: var(--line); }
.feature h3 { margin: 14px 0 8px; }
.feature p { color: var(--text-2); font-size: 15px; margin: 0; }

.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news .card { margin: 0; }
.news p { color: var(--text-2); font-size: 15px; margin: 0; }
.event-mini { color: var(--text); display: block; }
.event-mini:hover { color: var(--text); border-color: var(--line); }

.cta-band { margin-top: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 32px; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(600px 200px at 0% 50%, rgba(212, 173, 85, .14), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.cta-band > div { display: flex; align-items: center; gap: 20px; }
.cta-band .emblem { width: 56px; height: 56px; color: var(--gold); flex: none; }
.cta-band h2 { margin: 0 0 4px; font-size: 28px; text-transform: uppercase; }
.cta-band p { margin: 0; color: var(--text-2); }

/* ---------------------------------------------------------------- içerik sayfaları */
.prose { max-width: 820px; margin: 0 auto; }
.prose h1 { margin-bottom: 18px; }
.prose h2 { margin-top: 30px; font-size: 25px; color: var(--gold-2); }
.prose h3 { margin-top: 22px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-decoration-color: rgba(240, 207, 126, .4); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- kadro */
.staff-group { margin-top: 30px; }
.staff-group h2 { font-size: 15px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 14px; }
.staff-group h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.staff-card { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); }
.staff-card img { border-radius: 50%; border: 1px solid var(--line); flex: none; }
.staff-card b { display: block; font-weight: 600; }
.staff-card span { color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- panel, profil, karakter */
.profile { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile h1 { margin: 0; font-size: 32px; }
.avatar { border-radius: 50%; border: 2px solid var(--gold); box-shadow: 0 0 0 4px var(--gold-dim); flex: none; }
.progress { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; counter-reset: p; }
.progress li { counter-increment: p; position: relative; padding: 10px 12px 10px 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); font-family: var(--head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; color: var(--muted); }
.progress li::before { content: counter(p); position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font-size: 12px; }
.progress li.done { color: var(--ok); border-color: rgba(95, 196, 138, .3); }
.progress li.done::before { content: "✓"; border-color: var(--ok); background: rgba(95, 196, 138, .15); }
.progress li.now { color: var(--gold-2); border-color: rgba(212, 173, 85, .5); box-shadow: 0 0 22px rgba(212, 173, 85, .12) inset; }
.progress li.now::before { border-color: var(--gold); color: var(--gold); }

.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.char { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel-2), var(--panel)); overflow: hidden; }
.char::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--gold); opacity: .6; }
.char.rep::before { background: var(--rep); opacity: .9; }
.char.emp::before { background: var(--emp); opacity: .9; }
.char.empty, .char.locked, .char.pending { border-style: dashed; background: rgba(12, 15, 21, .6); }
.char.locked { opacity: .75; }
.char.pending::before { background: var(--warn); }
.char h3 { margin: 6px 0 2px; font-size: 22px; }
.char h3 a { color: var(--text); }
.char h3 a:hover { color: var(--gold-2); }
.char-rank { color: var(--gold-2); font-family: var(--head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.char-rank.big { font-size: 20px; }
.char-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.char-stats.wide { grid-template-columns: repeat(4, 1fr); margin: 18px 0; }
.char-stats div { padding: 9px 11px; border-radius: 9px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line-2); }
.char-stats dt { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-family: var(--head); font-weight: 600; }
.char-stats dd { margin: 0; font-family: var(--head); font-weight: 700; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.char-story { color: var(--text-2); font-size: 14.5px; }
.char-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.char-hero { padding: 34px 30px; border-radius: var(--radius); border: 1px solid var(--line-2); margin-bottom: 18px; background: radial-gradient(700px 260px at 100% 0%, var(--gold-dim), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.rep .char-hero { background: radial-gradient(700px 260px at 100% 0%, var(--rep-dim), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.emp .char-hero { background: radial-gradient(700px 260px at 100% 0%, var(--emp-dim), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.char-hero h1 { font-size: clamp(32px, 5vw, 50px); text-transform: uppercase; margin: 8px 0 4px; }
.char-page > section, .legion-page > section { margin-top: 18px; }

.ladder { list-style: none; padding: 0; margin: 6px 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.ladder li { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--muted); background: rgba(0, 0, 0, .2); }
.ladder li.done { color: var(--text-2); border-color: rgba(212, 173, 85, .25); }
.ladder li.now { color: #140f04; background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: var(--gold); font-weight: 700; }
.req-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.req-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 8px; background: rgba(0, 0, 0, .22); border-left: 3px solid var(--muted); }
.req-list li.ok { border-left-color: var(--ok); }
.req-list li.no { border-left-color: var(--err); }
.req-list li.unk { border-left-color: var(--warn); }
.timeline { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.timeline li { padding: 9px 12px 9px 16px; border-left: 2px solid var(--line); background: rgba(0, 0, 0, .18); border-radius: 0 8px 8px 0; }
.timeline time { display: inline-block; margin: 0 10px 0 0; font-size: 12px; }
.req-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.req-row:last-child { border-bottom: 0; }
.req-row > div:first-child { flex: 1 1 320px; min-width: 0; }
.medal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.medal { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(240px 80px at 0 0, var(--gold-dim), transparent), rgba(0, 0, 0, .2); }
.medal-icon { font-size: 26px; line-height: 1; }
.medal p { margin: 2px 0 0; }

/* ---------------------------------------------------------------- birlikler, etkinlikler, sıralama */
.legions { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.legion { display: block; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel-2), var(--panel)); color: var(--text); transition: transform .2s, border-color .2s; }
.legion:hover { color: var(--text); transform: translateY(-2px); border-color: var(--line); }
.legion.rep { box-shadow: inset 3px 0 0 var(--rep); }
.legion.emp { box-shadow: inset 3px 0 0 var(--emp); }
.legion h3 { margin: 10px 0 4px; font-size: 21px; }
.legion p { color: var(--text-2); font-size: 14.5px; margin: 4px 0 0; }
.legion-tag { display: inline-block; font-family: var(--head); font-weight: 700; letter-spacing: .14em; font-size: 13px; padding: 3px 9px; border-radius: 6px; background: var(--gold-dim); color: var(--gold-2); border: 1px solid var(--line); }

.events { display: grid; gap: 14px; }
.event { display: flex; gap: 18px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.event.rep { box-shadow: inset 3px 0 0 var(--rep); }
.event.emp { box-shadow: inset 3px 0 0 var(--emp); }
.event.cancelled { opacity: .55; }
.events.past .event { opacity: .7; }
.event-date { flex: none; width: 66px; height: 70px; display: grid; place-content: center; text-align: center; border-radius: 12px; border: 1px solid var(--line); background: var(--gold-dim); }
.event-date b { font-family: var(--head); font-size: 30px; line-height: 1; color: var(--gold-2); }
.event-date span { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--text-2); }
.event-body { min-width: 0; flex: 1; }
.event-body h3 { margin: 6px 0 4px; font-size: 21px; }

.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 5px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(10, 13, 19, .6); width: fit-content; max-width: 100%; }
.subnav a { padding: 7px 14px; border-radius: 8px; color: var(--text-2); font-family: var(--head); font-weight: 600; font-size: 14.5px; letter-spacing: .08em; text-transform: uppercase; }
.subnav a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.subnav a.active { color: #140f04; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.small-nav a { font-size: 13px; padding: 5px 11px; }

.board { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.board li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: linear-gradient(90deg, var(--panel-2), var(--panel)); }
.board li.rep { box-shadow: inset 3px 0 0 var(--rep); }
.board li.emp { box-shadow: inset 3px 0 0 var(--emp); }
.board-main { flex: 1; min-width: 0; display: grid; }
.board-main a { color: var(--text); }
.board-main a:hover { color: var(--gold-2); }
.board-val { font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--gold-2); white-space: nowrap; }
.place { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-family: var(--head); font-weight: 700; border: 1px solid var(--line-2); color: var(--muted); }
.place.p1 { color: #1a1305; background: linear-gradient(180deg, #ffe39a, var(--gold)); border-color: var(--gold); box-shadow: 0 0 18px rgba(212, 173, 85, .45); }
.place.p2 { color: #15171b; background: linear-gradient(180deg, #f0f2f5, #a9b0b9); border-color: #c8cdd4; }
.place.p3 { color: #1a0f07; background: linear-gradient(180deg, #e9b98a, #a86a3a); border-color: #c48a5a; }

/* ---------------------------------------------------------------- tablolar ve yönetim */
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line-2); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-family: var(--head); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; color: var(--gold); padding: 11px 12px; background: rgba(0, 0, 0, .3); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, .02); }
td.clip { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
td.clip-wide { max-width: 560px; word-break: break-word; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.link-list li { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.link-list li:last-child { border-bottom: 0; }
.console { margin: 0; padding: 14px; border-radius: 10px; background: #030406; border: 1px solid var(--line-2); color: #b9e4c4; font: 12.5px/1.55 var(--mono); max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-all; }

/* ---------------------------------------------------------------- alt bilgi */
.footer { margin-top: auto; border-top: 1px solid var(--line); background: rgba(5, 7, 11, .8); }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; padding-top: 38px; padding-bottom: 30px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 46ch; margin-top: 14px; }
.footer-nav { display: grid; gap: 6px; align-content: start; }
.footer-nav b { font-family: var(--head); letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--gold); margin-bottom: 4px; }
.footer-nav a { color: var(--text-2); font-size: 15px; }
.footer-nav a:hover { color: #fff; }
.footer-legal { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 18px; border-top: 1px solid var(--line-2); color: #646b75; font-size: 13px; }

/* ---------------------------------------------------------------- duyarlı */
@media (max-width: 1100px) {
  .nav-link { padding: 8px 7px; font-size: 14px; letter-spacing: .06em; }
}
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px; background: rgba(6, 8, 12, .97); border-bottom: 1px solid var(--line); max-height: calc(100vh - 66px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 10px; font-size: 16px; }
  .nav-link.active::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .nav-sep { width: 100%; height: 1px; margin: 8px 0; }
  .nav-user { max-width: none; align-self: flex-start; }
  .nav .btn { align-self: flex-start; }
  .hero { grid-template-columns: 1fr; gap: 10px; }
  .hero-art { max-width: 300px; order: -1; }
  .steps, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { font-size: 15.5px; }
  main { padding-top: 22px; }
  .section { margin-top: 48px; }
  .grid-2, .factions, .steps, .features, .news, .slots { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats b { font-size: 28px; }
  .progress { grid-template-columns: 1fr 1fr; }
  .progress li:last-child { grid-column: 1 / -1; }
  .card { padding: 18px; }
  .card-lg { padding: 22px 18px; }
  .char-stats.wide { grid-template-columns: repeat(2, 1fr); }
  .char-hero { padding: 26px 20px; }
  .event { flex-direction: column; gap: 12px; }
  .event-date { width: auto; height: auto; padding: 8px 12px; display: flex; gap: 8px; align-items: baseline; place-content: start; }
  .cta-band { padding: 24px 20px; }
  .cta-band > div { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .status-card { width: 100%; }
  .footer-in { grid-template-columns: 1fr; }
  .subnav { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
