/* ===== Tasarım sistemi ===== */
:root {
  color-scheme: dark;
  --bg: #07090f;
  --bg2: #0a0d16;
  --card: #0f1320;
  --card2: #151a29;
  --line: #222a3c;
  --line2: #2d3750;
  --text: #eef2f8;
  --muted: #8d98ad;
  --dim: #5d6880;
  --acc: #2ee6a6;
  --acc2: #12b886;
  --acc-ink: #04261a;
  --vio: #8b7bff;
  --warn: #ffb547;
  --bad: #ff5d73;
  --r: 20px;
  --r-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.55 Inter, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(46, 230, 166, .3); }
img { display: block; max-width: 100%; }

/* ===== Arka plan ===== */
.bgfx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bgfx .hero-img { position: absolute; inset: 0; background-size: cover; background-position: center 20%;
  opacity: .32; filter: saturate(1.1); mask-image: linear-gradient(180deg, #000 30%, transparent 85%); }
.bgfx .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.bgfx .b1 { width: 620px; height: 620px; left: -160px; top: -200px; background: radial-gradient(circle, #12b88655, transparent 65%); animation: drift1 22s ease-in-out infinite; }
.bgfx .b2 { width: 560px; height: 560px; right: -180px; top: 80px; background: radial-gradient(circle, #8b7bff44, transparent 65%); animation: drift2 26s ease-in-out infinite; }
.bgfx .b3 { width: 700px; height: 700px; left: 30%; top: 55%; background: radial-gradient(circle, #2ee6a622, transparent 65%); animation: drift1 30s ease-in-out infinite reverse; }
.bgfx .grid { position: absolute; inset: -2px; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); }
.bgfx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px,60px) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-70px,90px) scale(.92); } }

/* ===== Üst bar ===== */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(1.4);
  background: linear-gradient(180deg, rgba(7,9,15,.85), rgba(7,9,15,.55)); border-bottom: 1px solid rgba(255,255,255,.04); }
.top .in { max-width: 1240px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 850; font-size: 18px; letter-spacing: -.02em; }
.brand .logo { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: conic-gradient(from 200deg, var(--acc), var(--vio), var(--acc)); box-shadow: 0 8px 24px -6px #2ee6a680; position: relative; }
.brand .logo::after { content: ""; position: absolute; inset: 2px; border-radius: 9px; background: #0b0f19; }
.brand .logo svg { position: relative; z-index: 1; width: 18px; height: 18px; }
.nav { display: flex; gap: 4px; margin: 0 auto; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05); }
.nav a { padding: 7px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; transition: .2s var(--ease); position: relative; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav a.on { color: var(--text); background: rgba(46,230,166,.1); box-shadow: inset 0 0 0 1px rgba(46,230,166,.25); }
.top .right { display: flex; gap: 8px; align-items: center; }
.top .menu-btn { display: none; }

/* ===== Butonlar / girdiler ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: 0;
  padding: 11px 18px; border-radius: 14px; font-weight: 700; font-size: 14px; transition: transform .15s var(--ease), box-shadow .2s, background .2s, opacity .2s;
  background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px #3a4766; }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.pri { color: var(--acc-ink); background: linear-gradient(135deg, #5cf2bd, var(--acc) 40%, var(--acc2)); box-shadow: 0 10px 30px -10px #2ee6a6aa, inset 0 1px 0 rgba(255,255,255,.4); }
.btn.pri:hover { box-shadow: 0 14px 36px -10px #2ee6a6cc, inset 0 1px 0 rgba(255,255,255,.4); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: rgba(255,255,255,.04); }
.btn.bad { background: rgba(255,93,115,.1); color: #ff8b9b; box-shadow: inset 0 0 0 1px rgba(255,93,115,.3); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.lg { padding: 15px 24px; font-size: 16px; border-radius: 16px; }
.btn.block { width: 100%; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line);
  background: rgba(5,7,12,.6); outline: none; transition: border .2s, box-shadow .2s; }
.input:focus { border-color: rgba(46,230,166,.55); box-shadow: 0 0 0 4px rgba(46,230,166,.12); }
.input::placeholder { color: var(--dim); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

/* ===== Kart / genel ===== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 22px; }
.card { background: linear-gradient(180deg, rgba(21,26,41,.85), rgba(13,17,28,.9)); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r); box-shadow: var(--shadow); backdrop-filter: blur(10px); position: relative; isolation: isolate; }
/* İmleci takip eden yumuşak ışık: içeriğin altında, kart zemininin üstünde (z-index:-1) */
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(46,230,166,.1), rgba(139,123,255,.06) 40%, transparent 70%);
  opacity: 0; transition: opacity .35s var(--ease); }
.card:hover::after { opacity: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: var(--muted); }
.pill.acc { color: var(--acc); background: rgba(46,230,166,.08); border-color: rgba(46,230,166,.25); }
.pill.vio { color: #b6abff; background: rgba(139,123,255,.1); border-color: rgba(139,123,255,.3); }
.pill.warn { color: var(--warn); background: rgba(255,181,71,.08); border-color: rgba(255,181,71,.25); }
.pill.bad { color: #ff8b9b; background: rgba(255,93,115,.08); border-color: rgba(255,93,115,.25); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.grad { background: linear-gradient(100deg, #7df5cb, var(--acc) 35%, #a99dff 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2, h3 { letter-spacing: -.03em; margin: 0; }
.h-xl { font-size: clamp(36px, 5.4vw, 62px); font-weight: 900; line-height: 1.02; }
.h-lg { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; line-height: 1.05; }
.hidden { display: none !important; }

/* ===== Görünme animasyonu ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Toast ===== */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 240px; max-width: 360px; padding: 12px 16px; border-radius: 14px; background: #121827; border: 1px solid var(--line2);
  box-shadow: var(--shadow); font-size: 14px; animation: tin .35s var(--ease); display: flex; gap: 10px; align-items: flex-start; }
.toast.ok { border-color: rgba(46,230,166,.4); }
.toast.bad { border-color: rgba(255,93,115,.45); }
.toast.out { animation: tout .3s var(--ease) forwards; }
@keyframes tin { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes tout { to { opacity: 0; transform: translateX(20px); } }

/* ===== Canlı aktivite ===== */
.live { position: fixed; left: 18px; bottom: 18px; z-index: 40; display: flex; gap: 12px; align-items: center; padding: 10px 14px 10px 10px;
  border-radius: 16px; background: rgba(15,19,32,.92); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 330px;
  transform: translateY(140%); opacity: 0; transition: .6s var(--ease); font-size: 13px; }
.live.show { transform: none; opacity: 1; }
.live .thumb { width: 42px; height: 42px; border-radius: 10px; flex: none; background-size: cover; background-position: center; }
.live b { color: var(--text); }
.live small { color: var(--dim); display: block; }

/* ===== Modal ===== */
.modal-bg { position: fixed; inset: 0; z-index: 150; background: rgba(3,4,8,.7); backdrop-filter: blur(6px); display: grid; place-items: center;
  padding: 20px; animation: fade .25s; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; animation: pop .35s var(--ease); }
.modal.wide { width: min(820px, 100%); }
.modal h3 { font-size: 22px; font-weight: 850; margin-bottom: 4px; }
.modal .x { float: right; margin: -8px -8px 0 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* ===== Oyun kapağı yedeği ===== */
.cover { position: relative; background-size: cover; background-position: center; overflow: hidden; }
.cover.ph { display: grid; place-items: center; font-weight: 900; font-size: 34px; letter-spacing: -.04em; color: rgba(255,255,255,.85);
  text-shadow: 0 4px 20px rgba(0,0,0,.4); }

/* ===== Alt bilgi ===== */
.foot { margin-top: 90px; border-top: 1px solid rgba(255,255,255,.05); background: rgba(5,7,12,.5); }
.foot .in { max-width: 1240px; margin: 0 auto; padding: 30px 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.foot .f { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.foot .f b { display: block; color: var(--text); font-size: 14px; }
.foot .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: rgba(46,230,166,.08); color: var(--acc); }
.foot .copy { text-align: center; color: var(--dim); font-size: 12px; padding: 0 0 26px; }

.announce { text-align: center; padding: 9px 16px; font-size: 13.5px; font-weight: 600; color: #04261a;
  background: linear-gradient(90deg, #5cf2bd, #2ee6a6, #a99dff); background-size: 200% 100%; animation: slide 8s linear infinite; }
@keyframes slide { to { background-position: 200% 0; } }

/* ===== Kaydırma ilerleme çubuğu ===== */
.scrollbar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--acc), var(--vio)); box-shadow: 0 0 10px #2ee6a6aa; transition: transform .08s linear; pointer-events: none; }

/* ===== Birincil butonda ışık süzülmesi ===== */
.btn.pri { position: relative; overflow: hidden; isolation: isolate; }
.btn.pri::before { content: ""; position: absolute; top: 0; bottom: 0; width: 45%; z-index: -1; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); }
.btn.pri:hover::before { animation: sheen .7s var(--ease); }
@keyframes sheen { to { left: 130%; } }

@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 62px; left: 12px; right: 12px; flex-direction: column; background: #0d111c; padding: 8px; }
  .nav.open { display: flex; }
  .top .menu-btn { display: inline-flex; }
  .foot .in { grid-template-columns: 1fr 1fr; }
  .live { left: 10px; right: 10px; max-width: none; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
