/* Quiz uygulaması - mobil öncelikli stil dosyası */
:root {
  --purple: #46178f;
  --purple-dark: #2d0d61;
  --purple-light: #864cbf;
  --red: #e21b3c;
  --blue: #1368ce;
  --yellow: #d89e00;
  --green: #26890c;
  --bg: #f2f2f6;
  --card: #ffffff;
  --text: #1d1d24;
  --muted: #6b6b7b;
  --border: #e1e1ea;
  --radius: 10px;
  --shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
}
a { color: var(--purple); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.row-gap { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- Üst menü ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem 1rem; padding-top: max(.6rem, env(safe-area-inset-top));
  background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.2rem; color: var(--purple); text-decoration: none; }
.brand img { border-radius: 8px; }
.nav { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; font-weight: 600; color: var(--text); font-size: .95rem; }
.nav a.muted { color: var(--muted); }
.nav a.btn { color: #fff; }

.container { max-width: 1000px; margin: 0 auto; padding: 1rem; padding-bottom: 4rem; }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.2rem; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--purple); color: #fff; font: inherit; font-weight: 700; text-decoration: none;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2); transition: transform .05s, filter .15s;
  min-height: 44px;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; transform: none; }
.btn-sm { padding: .4rem .8rem; min-height: 34px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--text); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12), 0 0 0 1px var(--border); }
.btn-dark { background: #333; }
.btn-green { background: var(--green); }
.btn-danger { background: var(--red); }
.btn-danger-text { color: var(--red); }
.btn-ghost { background: rgba(255, 255, 255, .15); box-shadow: none; }
.btn-big { font-size: 1.2rem; padding: .9rem 1.8rem; }
.icon-btn {
  border: 0; background: transparent; cursor: pointer; font-size: 1rem; padding: .35rem .5rem;
  border-radius: 6px; color: var(--muted); min-width: 34px; min-height: 34px;
}
.icon-btn:hover { background: var(--bg); color: var(--text); }
.icon-btn.danger:hover { color: var(--red); }
.link-btn { border: 0; background: none; color: var(--purple); cursor: pointer; font: inherit; padding: .2rem .4rem; }
.link-btn.danger { color: var(--red); }
form.inline { display: inline; }

/* ---------- Kartlar, formlar ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem; margin-bottom: 1rem; }
.card.narrow { max-width: 440px; margin: 2rem auto; }
.card.empty { text-align: center; padding: 2.5rem 1rem; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .9rem; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=url],
.form input[type=search], .form select, .form textarea, .search input {
  display: block; width: 100%; margin-top: .3rem; padding: .7rem .8rem; font: inherit; font-weight: 400;
  border: 2px solid var(--border); border-radius: 6px; background: #fff; color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus, .search input:focus { outline: none; border-color: var(--purple-light); }
.form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.alert { padding: .8rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-weight: 600; }
.alert-success { background: #e3f6dc; color: #1d5e0b; }
.alert-error { background: #fde3e7; color: #9b0c24; }
.alert-info { background: #e5effc; color: #0d4a96; }

.badge { display: inline-block; background: var(--bg); color: var(--muted); font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; }
.badge-live { background: #fff3cd; color: #8a6100; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.section-title { margin-top: 2rem; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.danger-zone h2 { color: var(--red); }

/* ---------- Tablo ---------- */
.table-wrap { overflow-x: auto; padding: .4rem; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: .6rem .7rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th.right, .table td.right { text-align: right; }
.table th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.table tr:last-child td { border-bottom: 0; }
.pct { display: inline-block; width: 70px; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; vertical-align: middle; margin-right: .3rem; }
.pct span { display: block; height: 100%; background: var(--green); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-bottom: 1rem; }
.stat { text-align: center; margin: 0; }
.stat b { display: block; font-size: 1.8rem; color: var(--purple); }
.stat span { color: var(--muted); font-weight: 600; }
.search { display: flex; gap: .5rem; margin-bottom: 1rem; }
.search input { margin: 0; }

/* ---------- Quiz listesi ---------- */
.quiz-item { display: flex; flex-direction: column; gap: 1rem; }
.quiz-info h3 { margin-bottom: .3rem; }
.quiz-info p { margin: 0 0 .5rem; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.quiz-actions form { margin: 0; }

/* ---------- Ana sayfa ---------- */
body.home { background: var(--purple); background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,.08) 0 120px, transparent 121px), radial-gradient(circle at 85% 80%, rgba(0,0,0,.12) 0 180px, transparent 181px); background-attachment: fixed; }
.hero { display: grid; gap: 2rem; align-items: center; padding: 2rem 0; min-height: calc(100vh - 140px); }
.hero.single { justify-items: center; }
.join-box { background: #fff; border-radius: var(--radius); padding: 1.5rem; width: 100%; max-width: 360px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,.25); text-align: center; }
.logo-text { font-size: 2.6rem; font-weight: 900; color: var(--purple); letter-spacing: -.02em; margin-bottom: 1rem; }
.pin-form input {
  width: 100%; padding: .8rem; font-size: 1.3rem; font-weight: 800; text-align: center;
  border: 2px solid var(--border); border-radius: 6px; margin-bottom: .7rem; font-family: inherit;
}
.pin-form input:focus { outline: none; border-color: var(--purple); }
.hero-text { color: #fff; text-align: center; }
.hero-text h2 { font-size: 1.7rem; }
.hero-text p { opacity: .9; }
.features { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .5rem; }
.features li { background: rgba(255,255,255,.1); padding: .6rem .9rem; border-radius: 6px; font-weight: 600; }
.features li::before { content: "✓ "; color: #9ef08a; }
body.home .alert { max-width: 360px; margin: 1rem auto; }

/* ---------- Quiz editörü ---------- */
.question-card { border-left: 5px solid var(--purple-light); }
.q-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.q-tools { display: flex; gap: .1rem; }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
.q-opts .grow { grid-column: 1 / -1; }
.answers-edit { display: grid; gap: .5rem; grid-template-columns: 1fr; }
.answer-edit { display: flex; align-items: center; gap: .5rem; border-radius: 6px; padding: .4rem; color: #fff; }
.answer-edit .shape { width: 26px; height: 26px; flex: none; }
.answer-edit .a-text { flex: 1; min-width: 0; padding: .6rem; border: 0; border-radius: 4px; font: inherit; background: rgba(255,255,255,.95); color: var(--text); }
.a-correct { margin: 0 !important; cursor: pointer; }
.a-correct input { position: absolute; opacity: 0; pointer-events: none; }
.a-correct span { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; align-items: center; justify-content: center; color: transparent; font-weight: 900; font-size: 1.1rem; }
.a-correct input:checked + span { background: #fff; color: var(--green); }
.a-correct input:focus-visible + span { outline: 3px solid #000; }
.add-q { margin-bottom: 5rem; border: 2px dashed var(--border); box-shadow: none; }
.save-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: flex-end; gap: .5rem;
  padding: .7rem 1rem; padding-bottom: max(.7rem, env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -2px 8px rgba(0,0,0,.1);
}

/* ---------- Renkler & şekiller ---------- */
.ans-red { background: var(--red); }
.ans-blue { background: var(--blue); }
.ans-yellow { background: var(--yellow); }
.ans-green { background: var(--green); }
.shape { display: inline-flex; color: #fff; }
.shape svg { width: 100%; height: 100%; }

/* ---------- Oyun ekranları ---------- */
body.game { background: var(--purple); color: #fff; overflow-x: hidden; }
main.bare { min-height: 100vh; display: flex; flex-direction: column; }
.game-top {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding: .5rem 1rem; background: rgba(0,0,0,.25);
}
.join-info { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; font-weight: 600; }
.pin-label { opacity: .8; }
.pin { font-size: 1.8rem; letter-spacing: .05em; }
.top-actions { display: flex; gap: .4rem; }
.stage { flex: 1; display: flex; flex-direction: column; padding: 1rem; }
.loading { margin: auto; opacity: .8; }
.center-box { margin: auto; text-align: center; max-width: 640px; padding: 1rem; }
.center-box h1 { font-size: 2rem; }
.q-counter { opacity: .85; font-weight: 700; }

/* Lobi */
.lobby { display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.quiz-title { text-align: center; font-size: 2rem; margin: .5rem 0 0; }
.join-url { text-align: center; margin: 0; opacity: .9; word-break: break-all; }
.join-qr-row { display: flex; align-items: center; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
.join-qr-row .join-url { flex: 0 1 26rem; text-align: left; }
.join-qr { background: #fff; border-radius: 12px; padding: 6px; width: clamp(130px, 18vw, 210px); line-height: 0; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.join-qr svg { width: 100%; height: auto; display: block; }
.qr-btn { margin-top: .75rem; }
.qr-scan { position: fixed; inset: 0; z-index: 2000; background: rgba(10,6,30,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1rem; color: #fff; text-align: center; }
.qr-scan[hidden] { display: none; }
.qr-view { position: relative; width: min(88vw, 420px); aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #000; }
.qr-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.qr-view::after { content: ""; position: absolute; inset: 14%; border: 3px solid rgba(255,255,255,.85); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.qr-msg { margin: 0; min-height: 1.5em; max-width: 26rem; }
.join-url a { color: #fff; }
.lobby-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pc { background: rgba(0,0,0,.25); padding: .5rem 1rem; border-radius: 6px; font-weight: 800; font-size: 1.1rem; }
.players { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; align-content: flex-start; }
.players .muted { color: rgba(255,255,255,.75); }
.chip {
  background: #fff; color: var(--text); border: 0; border-radius: 6px; padding: .5rem 1rem; font: inherit;
  font-weight: 800; font-size: 1.1rem; cursor: pointer; animation: pop .25s ease-out;
}
.chip:hover { text-decoration: line-through; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Soru */
.pre .q-big { font-size: 2rem; margin: 1rem 0; }
.pre-count { font-size: 4rem; font-weight: 900; width: 120px; height: 120px; line-height: 120px; margin: 1rem auto; border-radius: 50%; background: rgba(255,255,255,.15); animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.q-screen { display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.q-title { background: #fff; color: var(--text); border-radius: 6px; padding: .8rem 1rem; text-align: center; }
.q-title h1 { margin: 0; font-size: 1.4rem; }
.q-mid { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 120px; }
.timer { width: 72px; height: 72px; border-radius: 50%; background: var(--purple-light); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 900; flex: none; }
.timer.small { width: 44px; height: 44px; font-size: 1.2rem; }
.answered { text-align: center; font-weight: 900; font-size: 1.8rem; line-height: 1; flex: none; min-width: 72px; }
.answered small { display: block; font-size: .8rem; font-weight: 600; opacity: .85; margin-top: .2rem; }
.q-img { max-height: 32vh; border-radius: 6px; object-fit: contain; min-width: 0; }
.q-img-placeholder { opacity: .7; }

.answers { display: grid; grid-template-columns: 1fr; gap: .6rem; }
.answer {
  display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: 6px; color: #fff; border: 0;
  font: inherit; font-weight: 700; font-size: 1.15rem; text-align: left; min-height: 64px;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.2); position: relative; transition: opacity .2s, transform .1s;
}
.answer .shape { width: 34px; height: 34px; flex: none; }
.answer .txt { flex: 1; word-break: break-word; }
.answer .count { font-weight: 900; font-size: 1.3rem; }
.answer .tick { font-size: 1.6rem; font-weight: 900; }
.answers.revealed .answer.wrong { opacity: .35; }
.host-controls { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; flex-wrap: wrap; }
.host-controls .muted { color: rgba(255,255,255,.8); margin-right: auto; }

/* Grafik */
.chart { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 1rem; height: 30vh; min-height: 140px; }
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; width: 70px; }
.bar { width: 100%; border-radius: 4px 4px 0 0; transition: height .5s; }
.bar.dim { opacity: .4; }
.bar-num { font-weight: 900; font-size: 1.3rem; margin-bottom: .3rem; }
.shape.small { width: 22px; height: 22px; margin-top: .3rem; }

/* Skor tablosu & podyum */
.board { display: flex; flex-direction: column; gap: 1rem; flex: 1; max-width: 800px; width: 100%; margin: 0 auto; }
.board h1 { text-align: center; background: #fff; color: var(--text); padding: .6rem; border-radius: 6px; font-size: 1.5rem; }
.leader { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.leader li { display: flex; align-items: center; gap: .8rem; background: #fff; color: var(--text); padding: .8rem 1rem; border-radius: 6px; font-weight: 800; font-size: 1.15rem; animation: pop .3s ease-out; }
.leader li:first-child { background: #ffd34d; }
.leader.small li { font-size: 1rem; padding: .5rem .8rem; background: rgba(255,255,255,.9); }
.leader .rank { width: 1.8rem; color: var(--muted); }
.leader .name { flex: 1; word-break: break-word; }
.leader .delta { color: var(--green); font-size: .9rem; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: .5rem; margin: 1rem 0; min-height: 260px; }
.step { display: flex; flex-direction: column; align-items: center; animation: rise .8s ease-out both; }
.step-1 { animation-delay: .9s; }
.step-2 { animation-delay: .45s; }
.who { font-weight: 900; font-size: 1.2rem; margin-bottom: .4rem; text-align: center; word-break: break-word; }
.block { width: 100%; background: var(--purple-light); border-radius: 6px 6px 0 0; display: flex; flex-direction: column; align-items: center; padding-top: .6rem; font-weight: 900; }
.step-1 .block { height: 200px; background: #ffd34d; color: var(--text); }
.step-2 .block { height: 150px; background: #e0e0ea; color: var(--text); }
.step-3 .block { height: 110px; background: #e3a96b; color: var(--text); }
.medal { font-size: 2.2rem; }
@keyframes rise { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Oyuncu ekranı */
body.player .stage { padding-bottom: 4.5rem; }
.big-nick { font-size: 2rem; font-weight: 900; background: #fff; color: var(--text); display: inline-block; padding: .3rem 1.2rem; border-radius: 6px; }
.p-question { flex: 1; display: flex; flex-direction: column; gap: .8rem; }
.p-q-head { display: flex; align-items: center; gap: .8rem; }
.p-q-text { font-weight: 700; font-size: 1.05rem; }
.p-answers { flex: 1; grid-auto-rows: 1fr; }
.p-answers .answer { cursor: pointer; font-size: 1.2rem; -webkit-tap-highlight-color: transparent; }
.p-answers .answer:active { transform: scale(.97); }
.answer.faded { opacity: .3; }
.answer.chosen { outline: 4px solid #fff; }
.result h1 { font-size: 2.4rem; }
.result.right { color: #b7ffa3; }
.result.wrong { color: #ffc2cb; }
.result p { color: #fff; }
.pts-big { font-size: 2.4rem; font-weight: 900; margin: .5rem 0; }
.streak { font-weight: 800; }
.rank-line { opacity: .95; }
.medal-big { font-size: 5rem; }
.spinner { width: 46px; height: 46px; margin: 1.5rem auto; border: 5px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center;
  background: #fff; color: var(--text); padding: .7rem 1rem; padding-bottom: max(.7rem, env(safe-area-inset-bottom)); font-weight: 800;
}
.player-bar .score { background: #333; color: #fff; padding: .2rem .8rem; border-radius: 4px; }

/* Avatarlar */
.avatar {
  --av: #46178f; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2em; height: 2em; border-radius: 50%; font-size: 1em; line-height: 1;
  background: var(--av);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--av) 55%, #fff), var(--av));
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); font-style: normal;
}
.av-lg { font-size: 1.8rem; margin-bottom: .3rem; }
.av-xl { font-size: 3rem; margin: .3rem auto .6rem; box-shadow: 0 6px 18px rgba(0,0,0,.25), inset 0 -5px 0 rgba(0,0,0,.18); }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding-left: .5rem; }
.chip .avatar { font-size: 1.1rem; }
.leader li .avatar { font-size: .95rem; }
.player-bar .nick { display: inline-flex; align-items: center; gap: .5rem; }
.player-bar .avatar { font-size: .9rem; }
.music-tip { text-align: center; margin: 0; color: rgba(255,255,255,.8); }
#musicBtn.pulse { animation: pulse 1s infinite; }
.avatar-pick { text-align: left; margin: .2rem 0 .4rem; }
.ap-label { font-weight: 800; margin: 0 0 .4rem; font-size: .95rem; }
.ap-tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .5rem; }
.ap-tab {
  --av: #46178f; border: 2px solid var(--av); background: #fff; color: var(--av); border-radius: 999px;
  padding: .2rem .65rem; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer;
}
.ap-tab.on { background: var(--av); color: #fff; }
.ap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.ap-grid[hidden] { display: none; }
.ap-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem .1rem; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.ap-item input { position: absolute; opacity: 0; pointer-events: none; }
.ap-item .avatar { font-size: 1.5rem; transition: transform .15s; }
.ap-item small { font-size: .68rem; color: var(--muted); text-align: center; line-height: 1.1; }
.ap-item:hover .avatar { transform: scale(1.08); }
.ap-item:has(input:checked) { border-color: var(--purple, #46178f); background: rgba(70,23,143,.08); }
.ap-item input:checked + .avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--purple); }
.ap-item input:focus-visible + .avatar { outline: 3px solid #1368ce; outline-offset: 2px; }

/* Ana ekrana ekle çubuğu */
.install-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: center; gap: .6rem; background: #fff; color: var(--text); padding: .6rem .8rem;
  border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: 480px; margin: 0 auto; font-size: .92rem;
}
.install-bar span { flex: 1; }

/* ---------- Geniş ekranlar ---------- */
@media (min-width: 640px) {
  h1 { font-size: 2rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .answers-edit { grid-template-columns: 1fr 1fr; }
  .q-opts { grid-template-columns: 170px 110px 140px 1fr; }
  .q-opts .grow { grid-column: auto; }
  .answers { grid-template-columns: 1fr 1fr; }
  .quiz-item { flex-direction: row; align-items: center; justify-content: space-between; }
  .quiz-actions { justify-content: flex-end; flex: none; max-width: 55%; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero.single { grid-template-columns: 1fr; }
  .hero-text { text-align: left; }
  .q-title h1 { font-size: 2rem; }
  .answer { font-size: 1.5rem; min-height: 96px; }
  .answer .shape { width: 44px; height: 44px; }
  .timer { width: 96px; height: 96px; font-size: 2.4rem; }
  .pin { font-size: 2.6rem; }
  .quiz-title { font-size: 2.8rem; }
  .chip { font-size: 1.3rem; }
}
/* Telefonda yatay: cevaplar 2x2 kalsın */
@media (max-width: 639px) and (orientation: landscape) {
  .p-answers { grid-template-columns: 1fr 1fr; }
}
/* Oyuncu telefonu dikeyde 2x2 büyük düğmeler */
@media (max-width: 639px) and (orientation: portrait) {
  .p-answers.answers-4, .p-answers.answers-3 { grid-template-columns: 1fr 1fr; }
  .p-answers .answer { flex-direction: column; justify-content: center; text-align: center; gap: .4rem; font-size: 1rem; }
  .p-answers .answer .txt { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Mor oyun arka planında ana düğmeler beyaz olsun */
body.game .btn:not(.btn-light):not(.btn-ghost) { background: #fff; color: var(--purple); }

/* ---------- v1.1: kategoriler, raporlar, yönetim ---------- */
.tabs { display: flex; gap: .3rem; overflow-x: auto; margin-bottom: 1rem; border-bottom: 2px solid var(--border); scrollbar-width: none; }
.tabs a { padding: .6rem .9rem; text-decoration: none; color: var(--muted); font-weight: 700; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.active { color: var(--purple); border-bottom-color: var(--purple); }
.cat-filter { display: flex; gap: .4rem; overflow-x: auto; margin-bottom: 1rem; padding-bottom: .2rem; scrollbar-width: none; }
.cat-filter a {
  white-space: nowrap; text-decoration: none; color: var(--text); background: #fff; border-radius: 99px; padding: .4rem .9rem;
  font-weight: 700; font-size: .9rem; box-shadow: inset 0 0 0 2px var(--c, var(--border));
}
.cat-filter a span { color: var(--muted); font-weight: 600; margin-left: .2rem; }
.cat-filter a.active { background: var(--c, var(--purple)); color: #fff; }
.cat-filter a.active span { color: rgba(255,255,255,.85); }
.cat-group { margin-bottom: 1.5rem; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-left: 5px solid var(--c); padding-left: .7rem; margin-bottom: .7rem; }
.cat-head h2 { margin: 0; }
.quiz-info .badge { margin-right: .3rem; text-decoration: none; }
details.more { position: relative; display: inline-block; }
details.more summary { list-style: none; cursor: pointer; }
details.more summary::-webkit-details-marker { display: none; }
.more-menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 200px; background: #fff; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15); padding: .4rem; display: grid; gap: .1rem; text-align: left;
}
.more-menu a, .more-menu .link-btn { display: block; width: 100%; text-align: left; padding: .5rem .6rem; border-radius: 6px; text-decoration: none; color: var(--text); font-size: .93rem; }
.more-menu a:hover, .more-menu .link-btn:hover { background: var(--bg); }
.more-menu .link-btn.danger { color: var(--red); }
.more-menu form { margin: 0; }
.pw-form { display: flex; gap: .3rem; align-items: center; padding: .2rem .3rem; }
.pw-form input { flex: 1; min-width: 0; padding: .4rem; border: 1px solid var(--border); border-radius: 4px; font: inherit; font-size: .88rem; }
.pw-form .link-btn { width: auto; white-space: nowrap; }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; padding: .9rem; }
.filters label { font-size: .8rem; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; gap: .2rem; flex: 1 1 140px; }
.filters input, .filters select, .search select { padding: .55rem .6rem; border: 2px solid var(--border); border-radius: 6px; font: inherit; color: var(--text); background: #fff; min-height: 42px; }
.filters .btn { flex: 0 0 auto; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar .search { margin: 0; flex: 1; max-width: 480px; }
.search { flex-wrap: wrap; }
.search input { flex: 1 1 200px; }
tr.hard td:first-child { box-shadow: inset 3px 0 0 var(--red); }
tr.inactive td { opacity: .55; }
.badge-hard { background: #fde3e7; color: #9b0c24; }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.plain-list { list-style: none; padding: 0; margin: 0 0 .6rem; }
.plain-list li { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--border); }
.plain-list li:last-child { border-bottom: 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .45rem; vertical-align: middle; }
.day-chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 1rem; }
.day { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.day .b { width: 100%; max-width: 34px; background: var(--purple-light); border-radius: 3px 3px 0 0; }
.day .n { font-size: .72rem; font-weight: 700; color: var(--muted); }
.day .d { font-size: .72rem; color: var(--muted); margin-top: .2rem; }
.radio-group { border: 0; padding: 0; margin: 0 0 .9rem; display: grid; gap: .3rem; }
.form label.radio, .form label.check { display: flex; align-items: center; gap: .5rem; font-weight: 600; cursor: pointer; }
.form label.radio input, .form label.check input { width: 18px; height: 18px; margin: 0; }
.form input[type=file] { display: block; width: 100%; margin-top: .3rem; padding: .6rem; border: 2px dashed var(--border); border-radius: 6px; background: var(--bg); font: inherit; }
.form input[type=color] { display: block; margin-top: .3rem; width: 70px; height: 40px; border: 2px solid var(--border); border-radius: 6px; padding: 2px; background: #fff; }
.err-list { margin: .5rem 0 0; padding-left: 1.2rem; font-weight: 500; }
.fmt-table { margin-top: 1rem; font-size: .88rem; }
.fmt-table th { text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--text); white-space: nowrap; vertical-align: top; }
.narrow-left { max-width: 560px; }
.cat-change select { padding: .3rem .4rem; border: 1px solid var(--border); border-radius: 4px; font: inherit; font-size: .88rem; background: #fff; max-width: 160px; }
.cat-admin .dot { width: 12px; height: 12px; }
[hidden] { display: none !important; }
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .cat-admin { grid-template-columns: 3fr 2fr; }
}

/* Doğru/Yanlış soruları */
.question-card .hint-truefalse { display: none; }
.question-card.is-tf .hint-truefalse { display: block; }
.question-card.is-tf .hint-multiple { display: none; }
.answer-edit .a-text[readonly] { background: transparent; color: #fff; font-weight: 800; font-size: 1.05rem; cursor: default; }
.add-q-row { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-bottom: 5rem; }
.add-q-row .add-q { margin-bottom: 0; }
@media (min-width: 640px) { .add-q-row { grid-template-columns: 1fr 1fr; } }

/* Güncelleme sayfası */
.danger-text { color: var(--red); }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-item { display: flex; gap: .7rem; padding: .7rem 0; border-top: 1px solid var(--border); }
.check-item:first-child { border-top: 0; }
.ci-icon { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--green); }
.check-item.warn .ci-icon { background: var(--yellow); }
.check-item.bad .ci-icon { background: var(--red); }
.check-item > div { min-width: 0; flex: 1; }
.check-item .small { margin-top: .2rem; }
.panel-step { margin-top: .35rem; padding: .5rem .7rem; background: var(--bg); border-radius: 8px; font-size: .9rem; overflow-wrap: anywhere; }
.check-item details summary { cursor: pointer; color: var(--purple); margin-top: .35rem; }
.check-item form { margin-top: .5rem; }
.small-stats { margin: .8rem 0; }
.small-stats .stat b { font-size: 1.4rem; }
.file-list { list-style: none; padding: 0; margin: .5rem 0; max-height: 260px; overflow: auto; overflow-wrap: anywhere; }
.file-list li { padding: .15rem 0; }

/* Soru bankası */
.no-margin { margin: 0; }
.picks { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.picks legend { font-weight: 700; margin-bottom: .4rem; padding: 0; width: 100%; }
.pick { cursor: pointer; margin: 0 !important; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; padding: .55rem 1rem; border: 2px solid var(--border); border-radius: 99px; font-weight: 700; background: #fff; }
.pick small { color: var(--muted); font-weight: 600; }
.pick input:checked + span { border-color: var(--purple); background: var(--purple); color: #fff; }
.pick input:checked + span small { color: #e6dcf5; }
.pick input:focus-visible + span { outline: 3px solid #000; }
.pick.diff-1 input:checked + span { background: var(--green); border-color: var(--green); }
.pick.diff-2 input:checked + span { background: var(--yellow); border-color: var(--yellow); }
.pick.diff-3 input:checked + span { background: var(--red); border-color: var(--red); }
.type-block { margin-bottom: 1rem; }
.type-block .hint { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }
.tf-pick { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.tf-opt { cursor: pointer; margin: 0 !important; }
.tf-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tf-opt span { display: block; text-align: center; padding: 1rem; border-radius: 8px; color: #fff; font-weight: 800; font-size: 1.1rem; opacity: .45; border: 4px solid transparent; }
.tf-opt.ans-green span { background: var(--green); }
.tf-opt.ans-red span { background: var(--red); }
.tf-opt input:checked + span { opacity: 1; border-color: var(--text); }
.order-edit { margin: 0 0 .6rem; padding-left: 1.6rem; display: grid; gap: .4rem; }
.order-edit li { display: flex; gap: .3rem; align-items: center; }
.order-edit li::marker { font-weight: 800; color: var(--purple); }
.order-edit input { flex: 1; min-width: 0; padding: .6rem; border: 2px solid var(--border); border-radius: 6px; font: inherit; }
.bank-summary summary { cursor: pointer; }
.bank-summary .table { margin-top: .6rem; }
.total-row td { border-top: 2px solid var(--border); }
.bank-table .cb { width: 34px; }
.bank-table input[type=checkbox] { width: 18px; height: 18px; }
.bq-text { font-weight: 600; margin-bottom: .2rem; }
.badge.diff-1 { background: #e3f6dc; color: #1d5e0b; }
.badge.diff-2 { background: #fff3cd; color: #8a6100; }
.badge.diff-3 { background: #fde3e7; color: #9b0c24; }
.badge.type-order { background: #e5effc; color: #0d4a96; }
.badge.type-truefalse { background: #efe6fa; color: var(--purple); }
.bulk-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; background: #fff; border: 2px solid var(--purple); border-radius: var(--radius); padding: .6rem .8rem; margin-bottom: .8rem; box-shadow: var(--shadow); }
.bulk-bar select { padding: .45rem; border: 2px solid var(--border); border-radius: 6px; font: inherit; max-width: 100%; }
.pager { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: center; margin: 1rem 0; }
.pager a, .pager span { padding: .45rem .8rem; border-radius: 6px; background: #fff; text-decoration: none; color: var(--text); font-weight: 700; }
.pager a.active { background: var(--purple); color: #fff; }
.sub-row td:first-child { padding-left: 1.8rem; }
.sub-mark { color: var(--muted); margin-right: .4rem; }
.filter-actions { display: flex; gap: .4rem; }
@media (max-width: 640px) { .hide-sm { display: none; } }
.show-sm { display: none; }
@media (max-width: 640px) { .show-sm { display: inline; } }
.order-edit { counter-reset: ord; padding-left: 0; }
.order-edit li::before { counter-increment: ord; content: counter(ord) "."; font-weight: 800; color: var(--purple); width: 1.4rem; flex: none; }
.cat-name { color: inherit; text-decoration: none; } .cat-name:hover { text-decoration: underline; }

/* Sıralama soruları (editör) */
.question-card .hint-order { display: none; }
.question-card.is-order .hint-order { display: block; }
.question-card.is-order .hint-multiple, .question-card.is-order .a-correct { display: none; }
.ord-num, .ord-letter { display: inline-flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1em; background: rgba(255,255,255,.25); border-radius: 50%; }
.ans-purple { background: #864cbf; }
.ans-teal { background: #0aa3a3; }
@media (min-width: 640px) {
  .q-opts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .q-opts .grow { grid-column: 1 / -1; }
  .add-q-row { grid-template-columns: 1fr 1fr; }
}

/* Soru Bankası seçici penceresi */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(20, 10, 40, .55); display: flex; align-items: flex-end; justify-content: center; }
.modal-box { background: var(--card); width: 100%; max-width: 760px; max-height: 92vh; display: flex; flex-direction: column; border-radius: 14px 14px 0 0; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
@media (min-width: 640px) { .modal { align-items: center; padding: 1rem; } .modal-box { border-radius: 14px; max-height: 88vh; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem .3rem; }
.modal-head h2 { margin: 0; font-size: 1.2rem; }
.small-tabs { margin: 0 1rem .4rem; }
.bank-filters { padding: 0 1rem .6rem; border-bottom: 1px solid var(--border); }
.mini-checks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .7rem; flex: 1 1 200px; }
.mini-checks legend { font-size: .8rem; font-weight: 700; color: var(--muted); padding: 0; margin-bottom: .2rem; }
.mini-checks label { flex-direction: row !important; align-items: center; gap: .3rem !important; font-size: .9rem !important; color: var(--text) !important; flex: none !important; font-weight: 600 !important; }
.modal-body { overflow-y: auto; padding: .6rem 1rem; flex: 1; min-height: 140px; }
.modal-foot { display: flex; gap: .5rem; align-items: center; justify-content: flex-end; padding: .7rem 1rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.modal-foot #bpSel { margin-right: auto; }
.bp-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.bp-list { list-style: none; margin: 0; padding: 0; }
.bp-list li { border-bottom: 1px solid var(--border); }
.bp-list label { display: flex; gap: .6rem; padding: .6rem 0; cursor: pointer; align-items: flex-start; }
.bp-list input { width: 20px; height: 20px; flex: none; margin-top: .15rem; }
.bp-list .bq-text { display: block; }
.bp-pager { display: flex; gap: .6rem; align-items: center; justify-content: center; margin-top: .6rem; }

/* Sıralama soruları (oyun) */
.order-help { margin: .3rem 0 .6rem; text-align: center; opacity: .85; }
.order-play { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .5rem; flex: 1; align-content: start; }
.order-play li { display: flex; align-items: center; gap: .6rem; padding: .7rem .6rem; border-radius: 8px; color: #fff; font-weight: 700; font-size: 1.1rem; touch-action: none; user-select: none; cursor: grab; box-shadow: 0 3px 0 rgba(0,0,0,.2); }
.order-play li.dragging { opacity: .85; transform: scale(1.03); box-shadow: 0 8px 18px rgba(0,0,0,.35); cursor: grabbing; z-index: 2; position: relative; }
.order-play .grip { opacity: .7; letter-spacing: -2px; }
.order-play .shape { width: 30px; height: 30px; flex: none; }
.order-play .txt { flex: 1; word-break: break-word; }
.ord-btns { display: flex; flex-direction: column; gap: 2px; }
.ord-btns button { background: rgba(255,255,255,.25); border: 0; color: #fff; width: 34px; height: 24px; border-radius: 4px; font-size: .75rem; cursor: pointer; }
.order-correct { text-align: left; display: inline-block; margin: 0 auto 1rem; font-size: 1.15rem; font-weight: 700; }
.order-tip { text-align: center; font-weight: 800; font-size: 1.2rem; margin: .2rem 0 .6rem; }
.order-reveal { display: grid; gap: 1rem; margin: 1rem 0; }
.order-result { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; counter-reset: res; }
.order-result li { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-radius: 8px; font-weight: 800; font-size: 1.3rem; }
.order-result li::before { counter-increment: res; content: counter(res) "."; font-size: 1.5rem; width: 2rem; }
.order-result .shape { width: 36px; height: 36px; flex: none; }
.order-stats { display: flex; gap: 1rem; justify-content: center; }
.order-stats .os { background: rgba(255,255,255,.12); border-radius: 10px; padding: .8rem 1.4rem; text-align: center; font-weight: 700; }
.order-stats .os b { display: block; font-size: 2.2rem; }
.order-stats .right b { color: #8be36b; }
.order-stats .wrong b { color: #ff8b9c; }
@media (min-width: 900px) { .order-reveal { grid-template-columns: 2fr 1fr; align-items: center; } .order-stats { flex-direction: column; } }
.modal .small-tabs { margin: 0 1rem .6rem; flex: none; }
.modal .bank-filters { display: grid; grid-template-columns: 1fr; gap: .5rem; align-items: start; flex: none; }
.modal .bank-filters label, .modal .mini-checks { flex: none; }
@media (min-width: 640px) { .modal .bank-filters { grid-template-columns: 1fr 1fr; } }

/* ---------- Maraton ---------- */
.mt-top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: .8rem;
  padding: .5rem .8rem; padding-top: max(.5rem, env(safe-area-inset-top)); background: rgba(0,0,0,.28);
}
.mt-clock { flex: 1; display: flex; align-items: center; gap: .6rem; }
.mt-clock b { font-size: 1.6rem; font-weight: 900; min-width: 2.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.mt-bar { flex: 1; height: 12px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; }
.mt-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #26890c, #66bf39); border-radius: 99px; transition: width .2s linear; }
body.mt-hurry .mt-bar span { background: linear-gradient(90deg, #e21b3c, #ff6b6b); }
body.mt-hurry .mt-clock b { color: #ffd34d; animation: pulse 1s infinite; }
.mt-score { text-align: right; line-height: 1.1; }
.mt-score small { display: block; font-size: .75rem; opacity: .8; }
.mt-score b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
body.marathon .stage { padding-bottom: 1rem; max-width: 900px; width: 100%; margin: 0 auto; }
.mt-question { position: relative; }
.mt-qhead { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .85rem; }
.mt-cat { opacity: .85; margin-right: auto; }
.mt-pts { background: rgba(255,255,255,.18); padding: .1rem .55rem; border-radius: 99px; font-weight: 800; }
.mt-diff { padding: .1rem .55rem; border-radius: 99px; font-weight: 800; background: #26890c; }
.mt-diff.d2 { background: #d89e00; }
.mt-diff.d3 { background: #e21b3c; }
.mt-qtext { font-size: 1.35rem; margin: .4rem 0 .6rem; line-height: 1.3; word-break: break-word; }
.mt-img { align-self: center; max-height: 26vh; margin-bottom: .6rem; }
.mt-tf { grid-template-columns: 1fr 1fr !important; }
.mt-tf .answer { min-height: 120px; flex-direction: column; justify-content: center; text-align: center; font-size: 1.3rem; }
.mt-tf .answer .txt { flex: none; }
.answer.is-right { outline: 5px solid #fff; transform: scale(1.03); }
.answer.is-right::after { content: '✓'; position: absolute; top: .3rem; right: .6rem; font-size: 1.5rem; font-weight: 900; }
.answer.is-wrong { opacity: .55; }
.answer.is-wrong::after { content: '✕'; position: absolute; top: .3rem; right: .6rem; font-size: 1.5rem; font-weight: 900; }
.mt-flash {
  position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 9; pointer-events: none;
  font-size: 3rem; font-weight: 900; padding: .6rem 1.6rem; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  animation: mtpop .35s ease-out;
}
.mt-flash.ok { background: #26890c; }
.mt-flash.no { background: #e21b3c; }
@keyframes mtpop { from { transform: translate(-50%, -50%) scale(.4); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.mt-correct-order { background: rgba(0,0,0,.3); border-radius: 8px; padding: .6rem 1rem; margin-top: .6rem; }
.mt-correct-order ol { margin: .3rem 0 0; padding-left: 1.4rem; font-weight: 700; }
.mt-summary .medal-big { font-size: 4rem; }
.mt-slotline { font-size: 1.15rem; }
.mt-record { color: #ffd34d; font-weight: 800; }
.mt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.2rem; }
.mt-actions .btn small { display: block; font-size: .75rem; font-weight: 600; opacity: .75; }
body.mt-over .mt-bar span { width: 0 !important; }
@media (min-width: 900px) {
  .mt-qtext { font-size: 1.8rem; }
  .mt-tf .answer { min-height: 160px; font-size: 1.6rem; }
}
.mt-flash { top: 30%; animation: mtpop .35s ease-out, mtfade .3s ease-in .75s forwards; }
@keyframes mtfade { to { opacity: 0; } }
.order-play.mt-revealed li, .order-play.mt-ok li { cursor: default; }
.order-play.mt-revealed li { animation: pop .3s ease-out; outline: 3px solid rgba(255,255,255,.85); }
.order-play.mt-revealed .ord-btns, .order-play.mt-ok .ord-btns { visibility: hidden; }
body.mt-over .mt-bar span { transition: none; }
body.marathon .p-answers { flex: 0 0 auto; grid-auto-rows: minmax(96px, auto); }
body.marathon .mt-tf { grid-auto-rows: minmax(150px, auto); }
@media (min-width: 900px) { body.marathon .mt-tf { grid-auto-rows: minmax(200px, auto); } }
body.game .muted { color: rgba(255,255,255,.8); }

/* Rozet ve jeton (v1.11) */
.mt-stake { font-weight: 700; color: #ffd76a; }
.mt-warn { color: #ffb4b4; font-weight: 700; }
.mt-badges { margin: .8rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.mt-badges p { width: 100%; margin: 0 0 .2rem; }
.mt-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px;
  background: #fff7e0; color: #7a4b00; border: 2px solid #f6c344; font-weight: 700; animation: mtPop .5s ease-out; }
.mt-badge small { font-weight: 600; opacity: .8; }
@keyframes mtPop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

/* Kullanıcı olarak gez bandı */
.imp-bar { position: sticky; top: 0; z-index: 1100; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: center;
  padding: .45rem 1rem; background: #ffc107; color: #33363a; font-size: .9rem; }
.imp-bar form { margin: 0; }
.imp-bar button { border: 0; border-radius: 6px; padding: .25rem .75rem; background: #33363a; color: #fff; font-weight: 600; cursor: pointer; }
