/* ---------- oyunlar */
.game-list { display: flex; flex-direction: column; gap: var(--s3); }
.game-card { gap: var(--s3); }
.game-card-head { display: flex; align-items: center; gap: var(--s3); }
.game-card-head h2 { font-size: 17px; }
.rank { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; font-size: 13px; flex: none; }
.mini-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s2); }
.mini-stats .stat { border: 0; background: var(--surface-2); padding: var(--s2) var(--s3); }
.mini-stats .stat-v { font-size: 17px; }
@media (max-width: 1100px) { .mini-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .mini-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- reklam */
.who { display: inline-flex; align-items: center; gap: 4px; }
.who .ic { width: 15px; height: 15px; color: var(--info); }
pre.secret { user-select: all; white-space: pre-wrap; word-break: break-all; background: var(--surface); color: var(--ink); padding: var(--s2) var(--s3); border-radius: var(--r-sm); margin: 4px 0; }
.result:empty { display: none; }

/* ---------- kurulum sihirbazı */
.wiz { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s4); align-items: start; }
.wiz-side { position: sticky; top: var(--s4); }
.wiz-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s2); max-height: calc(100vh - 140px); overflow: auto; }
.wiz-select { display: none; }
.wiz-phase { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: var(--s3) var(--s2) 4px; }
.wiz-step { display: flex; gap: 10px; align-items: center; width: 100%; padding: 7px 8px; border: 0; background: none; border-radius: var(--r-sm); cursor: pointer; font: inherit; font-size: 13px; color: var(--ink-2); text-align: left; }
.wiz-step:hover { background: var(--sunken); color: var(--ink); }
.wiz-step.on { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.wiz-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; flex: none; background: var(--sunken); color: var(--muted); }
.wiz-ic.ok { background: var(--ok-soft); color: var(--ok); }
.wiz-ic.warn { background: var(--warn-soft); color: var(--warn); }
.wiz-detail { gap: var(--s4); }
.wiz-title { font-size: 21px; }
.wiz-detail .lead { font-size: 15px; color: var(--ink-2); }
.wiz-how li { margin: 6px 0; }
.wiz-actions { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: space-between; border-top: 1px solid var(--line); padding-top: var(--s4); }
a.ext { display: inline-flex; align-items: center; gap: 4px; font-weight: 550; }
a.ext .ic { width: 14px; height: 14px; }
@media (max-width: 960px) {
  .wiz { grid-template-columns: 1fr; }
  .wiz-side { position: static; }
  .wiz-nav { display: none; }
  .wiz-select { display: block; }
}
@media (max-width: 560px) { .wiz-actions .row { width: 100%; } .wiz-actions .btn { flex: 1 1 auto; } }

/* ---------- oyun ekle */
.ask { max-width: 760px; gap: var(--s4); }
.ask-title { font-size: 21px; }
.ask-actions { border-top: 1px solid var(--line); padding-top: var(--s4); }
.ask .q { padding: var(--s3) 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.ask .q:last-of-type { border-bottom: 0; }
.ask .q h3 { font-size: 15px; }

/* ---------- ürün düzenleyici */
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s4); align-items: start; }
.side-col { position: sticky; top: var(--s4); }
@media (max-width: 1100px) { .editor-grid { grid-template-columns: 1fr; } .side-col { position: static; } }
.texts { display: flex; flex-direction: column; gap: var(--s2); }
.text-row { display: grid; grid-template-columns: 120px 1fr 1.6fr auto; gap: var(--s3); align-items: end; padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.text-row:last-child { border-bottom: 0; }
.text-loc { display: flex; flex-direction: column; gap: 2px; align-self: center; }
.text-loc .badge { width: fit-content; }
@media (max-width: 720px) { .text-row { grid-template-columns: 1fr auto; } .text-row .field { grid-column: 1 / -1; } .text-row .btn { grid-row: 1; grid-column: 2; } }
.counter { font-weight: 400; font-size: 11px; color: var(--muted); }
.counter.over { color: var(--bad); font-weight: 600; }
.imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--s4); }
.img-box { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: var(--s3); display: flex; flex-direction: column; gap: var(--s2); }
.img-box img { max-width: 100%; max-height: 220px; object-fit: contain; align-self: center; border-radius: var(--r-sm); background: var(--sunken); }
.img-empty { display: grid; place-items: center; height: 120px; background: var(--sunken); border-radius: var(--r-sm); color: var(--muted); font-size: 13px; }
.log { white-space: pre-wrap; margin: 0; color: var(--ink-2); }
.log:empty::before { content: "Gönderim sonuçları burada görünür."; color: var(--muted); font-family: var(--font); }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 12px; max-height: 360px; overflow: auto; }
.timeline li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.sticky-actions {
  position: sticky; bottom: 0; z-index: 10; display: flex; gap: var(--s2); flex-wrap: wrap; padding: var(--s3) 0;
  padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%);
}
@media (max-width: 560px) { .sticky-actions .btn { flex: 1 1 auto; } }

/* ---------- görevler */
.task-filter { margin-bottom: var(--s3); }
.task-filter input[type="search"] { width: min(260px, 100%); }
.seg { display: inline-flex; background: var(--sunken); border-radius: var(--r-sm); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg-btn { border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink-2); padding: 6px 12px; border-radius: calc(var(--r-sm) - 2px); cursor: pointer; }
.seg-btn:hover { color: var(--ink); }
.seg-btn.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.task-title strong { font-weight: 550; }
.fb-comment { margin: 0 0 var(--s3); padding: var(--s3) var(--s4); border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  white-space: pre-wrap; color: var(--ink); line-height: 1.5; }
.fb-shots { display: flex; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3); }
.fb-shot { display: block; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--sunken); width: 220px; }
.fb-shot.wide { width: 440px; }
.fb-shot img { display: block; width: 100%; height: auto; }
pre.crash-log { max-height: 420px; overflow: auto; background: var(--sunken); padding: var(--s3); border-radius: var(--r-sm); white-space: pre; }
ul.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 560px) {
  .fb-shot, .fb-shot.wide { width: 100%; }
  .task-filter input[type="search"] { width: 100%; }
}
