:root {
  --bg: #070B1A;
  --bg-2: #0E1430;
  --panel: #121A3A;
  --line: #26306A;
  --navy: #063B54;
  --orange: #F36C1F;
  --yellow: #FFD23F;
  --cyan: #2EE6FF;
  --pink: #FF4FA3;
  --text: #F4F6FF;
  --muted: #A9B2DA;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font-family: "Baloo 2", "Trebuchet MS", system-ui, sans-serif; line-height: 1.4;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(243,108,31,.25), transparent 60%),
    radial-gradient(800px 600px at -10% 30%, rgba(46,230,255,.12), transparent 60%),
    linear-gradient(var(--bg), var(--bg-2));
  background-attachment: fixed;
  overflow-x: hidden;
}
/* pixel grid */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(#000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(#000 0%, transparent 85%);
}
a { color: inherit; }
img { max-width: 100%; }
.pixel { font-family: "Press Start 2P", monospace; letter-spacing: .02em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- stars ---------- */
.stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.stars i {
  position: absolute; width: 3px; height: 3px; background: #fff; border-radius: 1px;
  opacity: .6; animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle { 50% { opacity: .1; } }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7,11,26,.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; }
.brand img { width: 40px; height: 40px; }
.brand b, .name b { color: var(--orange); font-weight: 700; }
.top nav { margin-left: auto; display: flex; gap: 6px; }
.top nav a {
  text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 999px; color: var(--muted);
}
.top nav a:hover { color: var(--text); background: var(--panel); }

/* ---------- hero ---------- */
.hero { padding: 48px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 10px; color: var(--yellow);
  background: rgba(255,210,63,.08); border: 1px solid rgba(255,210,63,.35);
  padding: 8px 12px; border-radius: 999px;
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3CFF8F; box-shadow: 0 0 10px #3CFF8F; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero h1 { font-size: clamp(48px, 9vw, 96px); line-height: .95; margin: 18px 0 12px; font-weight: 700; }
.hero h1 .name b {
  background: linear-gradient(180deg, #FFB37D, var(--orange) 60%, #C94A0A);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(243,108,31,.45));
}
.hero p.lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); margin: 0 0 26px; max-width: 34ch; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none;
  font: 700 18px/1 "Baloo 2", sans-serif; color: #1A0A00; background: var(--orange);
  padding: 16px 24px; border-radius: 14px; border: 0;
  box-shadow: 0 6px 0 #A8430B, 0 10px 30px rgba(243,108,31,.4);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #A8430B; }
.btn.ghost { background: transparent; color: var(--text); border: 2px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.badge-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.badge-stage::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--orange), var(--yellow), var(--cyan), var(--pink), var(--orange));
  filter: blur(28px); opacity: .45; animation: spin 10s linear infinite;
}
.badge-stage::after {
  content: ""; position: absolute; inset: 2%; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.18); animation: spin 30s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
.badge-btn { position: relative; z-index: 1; border: 0; background: none; padding: 0; cursor: pointer; width: 88%; }
.badge-btn img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 0 1.5px rgba(243,108,31,.9)) drop-shadow(0 0 14px rgba(243,108,31,.35)) drop-shadow(0 12px 24px rgba(0,0,0,.5));
  animation: float 4s ease-in-out infinite;
}
.badge-btn img.pop { animation: pop .45s ease-out, float 4s ease-in-out .45s infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@keyframes pop { from { transform: scale(.7) rotate(-12deg); opacity: 0; } 70% { transform: scale(1.06); } to { transform: none; opacity: 1; } }
.badge-hint { position: absolute; bottom: -6px; z-index: 2; font-size: 9px; color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 40px 0; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: clamp(30px, 5vw, 42px); font-weight: 700; }
.sec-head .pixel { font-size: 10px; color: var(--cyan); }

/* ---------- player card ---------- */
.player {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: linear-gradient(135deg, rgba(243,108,31,.12), transparent 40%), var(--panel);
  border: 2px solid var(--line); border-radius: 24px; padding: 28px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 20px 60px rgba(0,0,0,.35);
}
.avatar { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(243,108,31,.35), transparent 70%); }
.avatar img { width: 140px; filter: drop-shadow(0 0 1.5px rgba(243,108,31,.9)) drop-shadow(0 0 14px rgba(243,108,31,.35)); }
.player h3 { margin: 0 0 4px; font-size: 32px; font-weight: 700; }
.player .role { color: var(--muted); margin: 0 0 18px; font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stat .k { font-size: 14px; font-weight: 600; letter-spacing: .12em; color: var(--muted); }
.stat .v { font-size: 30px; font-weight: 700; margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.stat:nth-child(1) .v { color: var(--yellow); }
.stat:nth-child(2) .v { color: var(--orange); }
.stat:nth-child(3) .v { color: var(--cyan); }

/* ---------- badges (rozetler) ---------- */
.badges { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.badges button {
  aspect-ratio: 1; border-radius: 50%; padding: 12%; cursor: pointer;
  border: 2px solid transparent; background: transparent;
  transition: transform .15s, border-color .15s, background .15s;
}
.badges button:hover { transform: translateY(-4px) rotate(-6deg); background: radial-gradient(circle, rgba(243,108,31,.18), transparent 70%); }
.badges button[aria-pressed="true"] { border-color: var(--orange); background: radial-gradient(circle, rgba(243,108,31,.22), transparent 70%); box-shadow: 0 0 18px rgba(243,108,31,.35); }
.badges img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 1px rgba(243,108,31,.8)); }

/* ---------- games ---------- */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.game {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
a.game:hover { transform: translateY(-6px); border-color: var(--c, var(--orange)); box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 0 0 4px color-mix(in srgb, var(--c, var(--orange)) 25%, transparent); }
.game .cover {
  aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 64px;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 55%), var(--c, var(--orange));
}
.game .cover img { width: 100%; height: 100%; object-fit: cover; }
.game .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game h3 { margin: 0; font-size: 22px; font-weight: 700; }
.game p { margin: 0; color: var(--muted); }
.game .play { margin-top: auto; padding-top: 10px; font-size: 11px; color: var(--c, var(--orange)); }
.game.locked { opacity: .65; border-style: dashed; }
.game.locked .cover { background: repeating-linear-gradient(45deg, #151d42 0 14px, #10173a 14px 28px); font-size: 48px; }
.game.locked .play { color: var(--muted); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 20px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
footer .pixel { font-size: 9px; }

/* ---------- play page ---------- */
.play-page { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.play-page .top .wrap { width: calc(100% - 24px); }
.play-page .game-title { font-weight: 700; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play-page .tools { margin-left: auto; display: flex; gap: 8px; }
.play-page .btn { font-size: 15px; padding: 10px 14px; box-shadow: 0 4px 0 #A8430B; }
.play-page .btn.ghost { box-shadow: none; }
.frame { flex: 1; border: 0; width: 100%; background: #000; display: block; }
.notfound { flex: 1; display: grid; place-items: center; text-align: center; padding: 24px; }
.notfound h1 { font-size: 40px; margin: 0 0 12px; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .btns { justify-content: center; }
  .badge-stage { max-width: 340px; order: -1; }
  .player { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .player > div { width: 100%; }
  .badges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .top nav a { padding: 8px 10px; font-size: 15px; }
  .brand span { display: none; }
  .stats { grid-template-columns: 1fr; }
  .play-page .btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- youtube ---------- */
/* #E00030: beyaz yazıyla 5:1 kontrast (#FF0033 4:1 kalıyordu) */
.btn.yt { background: #E00030; color: #fff; box-shadow: 0 6px 0 #A3001F, 0 10px 30px rgba(255,0,51,.35); }
.btn.yt:active { box-shadow: 0 2px 0 #A3001F; }
.btn.big { font-size: 22px; padding: 18px 30px; }
.yt-icon {
  display: inline-block; width: 1.4em; height: 1em; border-radius: .28em; background: #fff; position: relative; flex: none;
}
.yt-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-left: .38em solid #FF0033; border-top: .24em solid transparent; border-bottom: .24em solid transparent;
}
.yt-box { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: stretch; }
.yt-player {
  aspect-ratio: 16 / 9; width: 100%; align-self: center; border-radius: var(--radius); overflow: hidden; background: #000;
  border: 2px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.yt-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-facade {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; text-decoration: none;
  background: radial-gradient(circle at 50% 45%, rgba(255,0,51,.28), transparent 60%), linear-gradient(160deg, #1a0a1f, #070B1A);
}
.yt-facade img { position: absolute; width: 38%; max-width: 220px; opacity: .35; filter: blur(1px); }
.yt-play {
  position: relative; width: 96px; height: 68px; border-radius: 18px; background: #E00030;
  box-shadow: 0 10px 30px rgba(255,0,51,.45); transition: transform .15s;
}
.yt-play::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-left: 28px solid #fff; border-top: 17px solid transparent; border-bottom: 17px solid transparent;
}
.yt-facade:hover .yt-play { transform: scale(1.08); }
.yt-facade-text { position: absolute; bottom: 14%; font-weight: 700; font-size: 20px; }
.yt-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  background: linear-gradient(160deg, rgba(255,0,51,.16), transparent 55%), var(--panel);
  border: 2px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.yt-card img { width: 110px; height: auto; filter: drop-shadow(0 0 1.5px rgba(243,108,31,.9)) drop-shadow(0 0 14px rgba(243,108,31,.35)); }
.yt-card h3 { margin: 4px 0 0; font-size: 28px; font-weight: 700; }
.yt-card .handle { margin: 0; color: var(--muted); font-weight: 600; }
.yt-card p { margin: 0 0 8px; }
.yt-card .btn { width: 100%; justify-content: center; }
.foot-yt { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; }
.foot-yt:hover { color: var(--text); }
@media (max-width: 820px) { .yt-box { grid-template-columns: 1fr; } }
/* ---------- steam ---------- */
.steam-card {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: linear-gradient(120deg, #1b2838, #2a475e 60%, #1b2838);
  border: 2px solid #3d6c8d; border-radius: var(--radius); padding: 24px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35), inset 0 0 0 1px rgba(102,192,244,.08);
}
.steam-id { display: flex; align-items: center; gap: 18px; }
.steam-id img { width: 96px; height: auto; flex: none; filter: drop-shadow(0 0 1.5px rgba(102,192,244,.9)) drop-shadow(0 0 14px rgba(102,192,244,.35)); }
.steam-id h3 { margin: 2px 0 0; font-size: 30px; font-weight: 700; line-height: 1.1; }
.steam-id .handle { margin: 2px 0 0; color: #c7d5e0; font-weight: 600; }
.steam-label { font-size: 10px; color: #66c0f4; }
.steam-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; max-width: 440px; }
.steam-hint { flex-basis: 100%; margin: 0; font-size: 14px; color: #c7d5e0; text-align: right; }
.btn.steam { background: linear-gradient(90deg, #47bfff, #1a44c2); color: #fff; box-shadow: 0 6px 0 #10307f, 0 10px 30px rgba(71,191,255,.3); }
.btn.steam:active { box-shadow: 0 2px 0 #10307f; }
@media (max-width: 820px) {
  .steam-card { grid-template-columns: 1fr; text-align: center; }
  .steam-id { flex-direction: column; }
  .steam-actions { justify-content: center; max-width: none; }
  .steam-actions .btn { flex: 1 1 200px; justify-content: center; }
  .steam-hint { text-align: center; }
}.friend-code {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; cursor: pointer;
  font: 600 15px/1.2 "Baloo 2", sans-serif; color: #c7d5e0;
  background: rgba(0,0,0,.25); border: 1px dashed #66c0f4; border-radius: 10px; padding: 6px 10px;
}
.friend-code b { color: #fff; font-size: 18px; letter-spacing: .06em; }
.friend-code span { color: #66c0f4; }
.friend-code:hover { background: rgba(102,192,244,.12); }