/* QuizForTeams — ortak stil */
:root {
  --ink: #14162b;
  --ink-2: #2b2e4a;
  --bg: #f6f4ef;
  --card: #ffffff;
  --muted: #6b6f85;
  --line: #e4e1d8;
  --accent: #A8841A;
  --accent-ink: #ffffff;
  --good: #14a37f;
  --bad: #e0453a;
  --mid: #8C2F39;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 22, 43, .06), 0 8px 24px rgba(20, 22, 43, .06);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); line-height: 1.4; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.01em; }
p { margin: .4em 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.logo { display: block; color: var(--ink); }
.dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-right: .4em; vertical-align: baseline; flex: none; }
.empty { color: var(--muted); padding: 2rem; text-align: center; }
.empty.big { font-size: 1.6rem; padding: 20vh 2rem; }
.err { color: var(--bad); font-weight: 600; text-align: center; }
.check { color: var(--good); font-weight: 900; margin-left: .4em; }

/* düğmeler & formlar */
.btn {
  border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: .65em 1.1em; cursor: pointer;
  font-weight: 600; transition: transform .06s ease, background .15s, border-color .15s; white-space: nowrap;
}
a.btn { text-decoration: none; color: inherit; display: inline-block; }
a.btn.primary, a.btn.dark { color: #fff; }
.btn:hover:not(:disabled) { border-color: #cfcabd; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: #0D1830; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.danger { color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { padding: .35em .7em; font-size: .85rem; border-radius: 9px; }
.btn.big { padding: .9em 1.2em; font-size: 1.1rem; width: 100%; }
input, textarea, select {
  border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: .7em .9em; width: 100%; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,162,39, .15); }
textarea { resize: vertical; }
label { font-size: .85rem; color: var(--muted); font-weight: 600; display: block; margin-bottom: .25em; }
.chip { display: inline-flex; align-items: center; gap: .3em; padding: .25em .7em; border-radius: 999px; background: #efece4; border: 1px solid transparent; font-size: .9rem; }
.chip.type { background: var(--ink); color: #fff; font-weight: 600; font-size: .8rem; letter-spacing: .02em; }
.pill { display: inline-flex; align-items: center; gap: .35em; padding: .3em .8em; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); }
.letter { display: inline-grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 8px; color: #fff; font-weight: 800; flex: none; }

#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; width: min(92vw, 420px); }
.toast { background: var(--ink); color: #fff; padding: .7em 1em; border-radius: 12px; box-shadow: var(--shadow); transition: opacity .3s, transform .3s; font-weight: 500; }
.toast.bad { background: var(--bad); }
.toast.good { background: var(--good); }
.toast.out { opacity: 0; transform: translateY(8px); }

.timebar { height: 6px; background: rgba(127,127,127,.18); border-radius: 99px; overflow: hidden; margin: .6rem 0 1rem; }
.timebar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transition: transform .1s linear; }
.clock { display: inline-grid; place-items: center; min-width: 2.4em; height: 2.4em; padding: 0 .4em; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.clock.small { font-size: .95rem; }
.spinner { width: 34px; height: 34px; border: 4px solid #e4e1d8; border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ katılımcı (telefon) ============ */
body.play { min-height: 100dvh; }
.hud { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; padding-top: max(.7rem, env(safe-area-inset-top)); background: rgba(246,244,239,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hud:empty { display: none; }
.hud-me { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.hud-score small { color: var(--muted); font-weight: 500; }
.play-main { max-width: 560px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; }
.card.join { margin-top: 8vh; }
.join-form { display: grid; gap: .8rem; }
.join-form #pin { font-size: 1.6rem; text-align: center; letter-spacing: .3em; font-weight: 800; font-variant-numeric: tabular-nums; }
.brand-big { display: grid; place-items: center; padding: .5rem 0; }
.team-pick { display: grid; gap: .6rem; margin-top: 1rem; }
.btn.team { border: 2px solid var(--c); color: var(--ink); text-align: left; padding: 1em; font-size: 1.05rem; position: relative; }
.btn.team::before { content: ""; display: inline-block; width: .8em; height: .8em; border-radius: 50%; background: var(--c); margin-right: .6em; }
.team-badge { margin: 1rem auto 0; width: fit-content; padding: .5em 1.2em; border-radius: 999px; background: var(--c); color: #fff; font-weight: 800; }
.view { display: grid; gap: .8rem; }
.q-head { display: flex; justify-content: space-between; align-items: center; }
.q-text { font-size: 1.35rem; margin: .2rem 0; }
.waiting { text-align: center; padding: 10vh 0 2rem; }
.intro-count { display: grid; place-items: center; gap: .4rem; padding: 2rem 0; }
.intro-count span { color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.intro-count b { font-size: 5rem; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.choices { display: grid; gap: .7rem; }
/* Cevaplar liste düzeninde: beyaz satır, solda renkli şerit ve harf rozeti; seçilen satır renkle dolar. */
.choice {
  display: flex; align-items: center; gap: .9rem; min-height: 64px; padding: .8rem 1rem .8rem .8rem; cursor: pointer;
  background: var(--card); color: var(--ink); font-weight: 700; font-size: 1.08rem; text-align: left;
  border: 2px solid var(--line); border-left: 8px solid var(--c); border-radius: 14px; transition: background .15s, border-color .15s, transform .06s;
}
.choice:active { transform: scale(.99); }
.choice .letter { background: var(--c); color: var(--fc, #fff); }
.choice:disabled { opacity: .4; }
.choice.picked { opacity: 1; background: var(--c); color: var(--fc, #fff); border-color: var(--c); }
.choice.picked .letter { background: rgba(255,255,255,.25); color: inherit; }
.scale { display: grid; gap: .5rem; }
.scale.n10 { grid-template-columns: repeat(5, 1fr); }
.scale-btn { min-height: 56px; font-size: 1.2rem; color: var(--mid); }
.scale.n10 .scale-btn { color: var(--ink); }
.scale-legend { display: flex; justify-content: space-between; font-size: .85rem; }
.order-pick { display: grid; gap: .5rem; }
.order-btn { display: flex; align-items: center; gap: .8rem; padding: .9rem; border-radius: 14px; border: 2px dashed var(--line); background: #fff; cursor: pointer; text-align: left; font-weight: 600; font-size: 1.02rem; }
.order-btn .num { display: inline-grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; border: 2px solid var(--line); font-weight: 800; flex: none; }
.order-btn.on { border-style: solid; border-color: var(--accent); }
.order-btn.on .num { background: var(--accent); border-color: var(--accent); color: #fff; }
.row-form { display: flex; gap: .5rem; align-items: center; }
.row-form input { flex: 1; font-size: 1.15rem; }
.unit { color: var(--muted); font-weight: 600; }
.col-form { display: grid; gap: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.fb { text-align: center; padding: 1.6rem 1rem; border-radius: var(--radius); color: #fff; }
.fb.ok { background: var(--good); }
.fb.mid { background: var(--mid); }
.fb.bad { background: var(--bad); }
.fb.none { background: #8a8da0; }
.fb-icon { font-size: 3.4rem; font-weight: 900; line-height: 1; }
.fb h2 { margin-top: .4rem; }
.fb .gain-big { color: #fff; }
.gain-big { font-size: 1.6rem; font-weight: 900; text-align: center; color: var(--good); font-variant-numeric: tabular-nums; }
.correct-order { background: #fff; border-radius: 12px; padding: .8rem 1rem .8rem 2.2rem; margin: 0; box-shadow: var(--shadow); }
.correct-order li { padding: .15rem 0; font-weight: 600; }
.rank-card { text-align: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; display: grid; gap: .3rem; }
.rank-num { font-size: 4rem; font-weight: 900; line-height: 1; }
.rank-num small { font-size: 1.2rem; color: var(--muted); font-weight: 600; }
.mini-teams { margin-top: 1rem; display: grid; gap: .3rem; text-align: left; }
.mini-team { display: flex; justify-content: space-between; padding: .45rem .7rem; border-radius: 10px; background: #f3f1ea; }
.mini-team.mine { outline: 2px solid var(--accent); }
.tap-view { text-align: center; user-select: none; -webkit-user-select: none; }
.tap-btn {
  --c: var(--accent);
  width: min(72vw, 300px); aspect-ratio: 1; margin: .6rem auto; border-radius: 50%; border: 0; background: var(--c); color: #fff;
  font-size: 2.2rem; font-weight: 900; letter-spacing: .04em; cursor: pointer; touch-action: manipulation;
  box-shadow: inset 0 -10px 0 rgba(0,0,0,.2), 0 12px 30px rgba(0,0,0,.15);
}
.tap-btn.hit { animation: hit .12s ease; }
@keyframes hit { 50% { transform: scale(.94); } }
.tap-count { font-size: 2.4rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.buzz-btn {
  width: min(78vw, 320px); aspect-ratio: 1; margin: 1rem auto; display: block; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #E0C46A, var(--accent) 55%, #6E2430); color: #fff; font-size: 3rem; font-weight: 900;
  box-shadow: inset 0 -12px 0 rgba(0,0,0,.25), 0 14px 34px rgba(201,162,39, .35); touch-action: manipulation;
}
.buzz-btn:active { transform: scale(.97); }
.buzz-btn:disabled { filter: grayscale(.6); }
.buzz-pos { text-align: center; font-size: 1.8rem; font-weight: 900; padding: 2rem 1rem; border-radius: var(--radius); background: var(--ink); color: #fff; }
.buzz-pos.first { background: var(--good); }

/* ortak: çubuk grafik, bulut, listeler (telefon + ekran) */
.bars { display: grid; gap: .7rem; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; align-items: center; gap: .8rem; }
.bar-row.dim { opacity: .4; }
.bar-label { display: flex; align-items: center; gap: .5rem; font-weight: 600; min-width: 0; }
.bar-label span:not(.letter) { overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 1.6em; background: rgba(127,127,127,.15); border-radius: 8px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 8px; transition: width .4s ease; min-width: 4px; }
.bar-num { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; }
.bar-num small { color: var(--muted); font-weight: 500; }
.play .bar-row { grid-template-columns: 1fr auto; }
.play .bar-track { grid-column: 1 / -1; grid-row: 2; height: 1em; }
.cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; align-content: center; gap: .2em .7em; padding: 1rem; line-height: 1.05; font-weight: 800; }
.cloud span { animation: pop .35s ease; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.qa-list { display: grid; gap: .6rem; }
.qa-card { display: flex; gap: .9rem; align-items: flex-start; background: var(--card); border-radius: 14px; padding: .8rem 1rem; box-shadow: var(--shadow); }
.qa-card.answered { opacity: .55; }
.qa-votes { display: grid; place-items: center; min-width: 3em; padding: .3em; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .8rem; cursor: pointer; }
.qa-votes b { font-size: 1.1rem; color: var(--ink); }
.qa-votes.on { border-color: var(--accent); color: var(--accent); }
.qa-votes:disabled { cursor: default; }
.qa-text { font-weight: 600; }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.ideas.small, .ideas.vote { grid-template-columns: 1fr; }
.idea { position: relative; background: var(--card); border-radius: 14px; padding: .9rem 1rem; box-shadow: var(--shadow); border: 0; border-top: 5px solid var(--accent); text-align: left; font-weight: 600; display: grid; gap: .2rem; }
button.idea { cursor: pointer; border: 2px solid var(--line); border-top-width: 2px; }
button.idea.voted { border-color: var(--good); background: #eefaf6; }
button.idea:disabled { opacity: .55; cursor: default; }
.idea.top { border-top-color: var(--mid); transform: scale(1.02); }
.idea.mine { outline: 2px solid var(--accent); }
.idea-votes { justify-self: start; margin-top: .3rem; font-size: .8rem; font-weight: 800; background: var(--ink); color: #fff; border-radius: 999px; padding: .15em .6em; }
.race { display: grid; gap: .8rem; }
.race-name { font-weight: 700; margin-bottom: .25rem; }
.race-name small { color: var(--muted); font-weight: 500; }
.race-track { position: relative; height: 2.2em; background: rgba(127,127,127,.15); border-radius: 10px; overflow: hidden; }
.race-fill { height: 100%; border-radius: 10px; transition: width .3s ease; min-width: 6px; }
.race-num { position: absolute; right: .7em; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: .9rem; }
.board-row { display: flex; align-items: center; gap: .8rem; padding: .55rem .8rem; border-radius: 12px; }
.board-row .rank { width: 1.8em; text-align: center; font-weight: 900; color: var(--muted); }
.board-row .name { flex: 1; font-weight: 700; display: flex; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.board-row .score { font-weight: 900; font-variant-numeric: tabular-nums; }
.gain { color: var(--good); font-weight: 800; font-size: .9em; }
.rating-avg { text-align: center; }
.rating-avg b { font-size: 4.5rem; font-weight: 900; color: var(--mid); }
.rating-avg.small b { font-size: 3rem; }
.rating-avg small { font-size: 1.3rem; color: var(--muted); }

/* ============ sunum ekranı ============ */
body.screen { background: radial-gradient(1200px 700px at 15% -10%, #2a2d52 0%, transparent 60%), radial-gradient(900px 600px at 110% 110%, #3a1d2a 0%, transparent 55%), #14162b; color: #fff; min-height: 100vh; overflow: hidden; }
.screen .logo, .stage .logo { color: #fff; }
.fs-btn { position: fixed; right: 14px; bottom: 14px; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: .4em .6em; cursor: pointer; opacity: .4; }
.fs-btn:hover { opacity: 1; }
.stage { --muted: #a6a9c4; --card: rgba(255,255,255,.07); --line: rgba(255,255,255,.14); --shadow: none; color: #fff; display: flex; flex-direction: column; min-height: 100vh; padding: 2vh 3vw 3vh; font-size: clamp(14px, 1.35vw, 26px); }
.stage-head { display: flex; align-items: center; gap: 1.2em; padding-bottom: 1.2vh; border-bottom: 1px solid rgba(255,255,255,.1); }
.stage-title { flex: 1; font-weight: 700; opacity: .85; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.stage-meta { display: flex; gap: .6em; }
.stage-meta b { letter-spacing: .08em; }
.stage .act { flex: 1; display: flex; flex-direction: column; padding-top: 3vh; max-width: 1500px; width: 100%; margin: 0 auto; }
.act-top { display: flex; justify-content: space-between; align-items: center; }
.stage .chip.type { background: rgba(255,255,255,.12); font-size: .85em; }
.stage .clock { font-size: 1.6em; }
.question { font-size: 2.6em; margin: .5em 0 .2em; font-weight: 800; letter-spacing: -.02em; }
.stage .timebar { height: 8px; background: rgba(255,255,255,.12); }
.stack { display: grid; gap: 1.2em; align-content: start; }
.answered { text-align: center; color: var(--muted); font-size: 1.1em; }
.answered b { color: #fff; font-size: 1.4em; }
.hint { text-align: center; font-size: 1.4em; color: var(--muted); }
.hint.pulse { color: #fff; font-weight: 900; font-size: 2em; animation: pulse 0.7s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.05); color: var(--accent); } }
.tiles { display: grid; grid-template-columns: 1fr; gap: .6em; margin-top: 1em; }
.tiles.n5, .tiles.n6, .tiles.n7, .tiles.n8 { gap: .45em; }
.tile { position: relative; display: flex; align-items: center; gap: .9em; padding: .85em 1.2em .85em .9em; border-radius: 16px; font-size: 1.35em; font-weight: 700;
  background: color-mix(in srgb, var(--c) 14%, transparent); border: 2px solid color-mix(in srgb, var(--c) 45%, transparent); border-left: 10px solid var(--c); transition: opacity .3s, transform .3s, background .3s; }
.tiles.n5 .tile, .tiles.n6 .tile, .tiles.n7 .tile, .tiles.n8 .tile { padding-top: .55em; padding-bottom: .55em; font-size: 1.2em; }
.tile .letter { background: var(--c); color: var(--fc, #fff); }
.tile-text { flex: 1; }
.tile-count { font-size: 1.4em; font-weight: 900; }
.tile.dim { opacity: .28; }
.tile.ok { transform: scale(1.01); background: var(--c); color: var(--fc, #fff); border-color: var(--c); }
.tile.ok .letter { background: rgba(255,255,255,.25); color: inherit; }
.tile .check { color: inherit; font-size: 1.3em; }
.stage .bars { font-size: 1.15em; gap: 1em; margin-top: .5em; }
.stage .bar-track { height: 2em; }
.stage .cloud { min-height: 40vh; }
.stage .intro-count b { font-size: 9em; }
.stage .intro-count span { color: var(--muted); font-size: 1.1em; }
.stage .qa-card { background: rgba(255,255,255,.07); font-size: 1.15em; }
.stage .qa-votes { background: transparent; border-color: rgba(255,255,255,.2); color: var(--muted); }
.stage .qa-votes b { color: #fff; }
.stage .idea { background: rgba(255,255,255,.08); font-size: 1.05em; }
.stage .idea-votes { background: #fff; color: var(--ink); }
.stage .race { font-size: 1.2em; gap: 1.2em; }
.stage .race-track { height: 2.6em; }
.order-list { display: grid; gap: .7em; max-width: 900px; }
.order-item { display: flex; align-items: center; gap: .9em; padding: .8em 1.1em; border-radius: 14px; background: rgba(255,255,255,.07); font-size: 1.3em; font-weight: 700; }
.order-item .num { display: inline-grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--good); font-weight: 900; }
.order-item small { margin-left: auto; font-size: .7em; }
.estimate-stage { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2em; align-items: start; margin-top: 1em; }
.est-answer { grid-row: span 2; display: grid; gap: .2em; padding: 1.5em; border-radius: 22px; background: rgba(255,255,255,.07); }
.est-answer b { font-size: 5em; line-height: 1; font-weight: 900; color: var(--accent); }
.est-answer span:last-child { font-size: 1.4em; font-weight: 700; }
.est-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }
.est-stats > div { display: grid; padding: 1em; border-radius: 14px; background: rgba(255,255,255,.07); }
.est-stats b { font-size: 1.8em; }
.closest h3 { color: var(--muted); font-size: 1em; }
.rating-stage { display: grid; grid-template-columns: 1fr 2fr; gap: 3em; align-items: end; margin-top: 2em; }
.rating-stage .rating-avg b { font-size: 7em; line-height: 1; }
.cols { display: flex; gap: 1em; align-items: flex-end; height: 40vh; }
.col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .4em; }
.col-bar { width: 100%; background: var(--mid); border-radius: 10px 10px 4px 4px; min-height: 4px; transition: height .4s ease; }
.col-num { font-weight: 900; font-size: 1.2em; }
.col-label { color: var(--muted); font-weight: 700; }
.buzz-list { display: grid; gap: .6em; max-width: 1000px; margin: 1em auto 0; width: 100%; }
.buzz-row { display: flex; align-items: center; gap: 1em; padding: .8em 1.2em; border-radius: 14px; background: rgba(255,255,255,.07); font-size: 1.4em; font-weight: 700; }
.buzz-row.first { background: var(--good); font-size: 1.9em; }
.buzz-row .name { flex: 1; display: flex; align-items: center; }
.buzz-row .ms { font-variant-numeric: tabular-nums; opacity: .85; }
.buzz-wait { text-align: center; font-size: 2.4em; font-weight: 900; padding: 12vh 0; }

/* lobi */
.lobby { flex: 1; display: grid; grid-template-columns: minmax(320px, 0.9fr) 1.3fr; gap: 3vw; padding-top: 4vh; align-items: start; }
.join-card { background: #fff; color: var(--ink); border-radius: 26px; padding: 2em; text-align: center; display: grid; gap: .3em; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.join-step { color: #6b6f85; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85em; }
.join-url { font-size: 1.3em; font-weight: 800; word-break: break-all; }
.join-pin-label { margin-top: .8em; color: #6b6f85; font-weight: 600; }
.join-pin { font-size: 4.6em; font-weight: 900; letter-spacing: .06em; line-height: 1; font-variant-numeric: tabular-nums; }
.qr { width: min(15em, 100%); margin: 1em auto 0; display: block; }
.lobby-people h2 { font-size: 2em; font-weight: 700; }
.lobby-people h2 b { color: var(--accent); }
.lobby-teams { display: flex; flex-wrap: wrap; gap: .6em; margin-bottom: 1.2em; }
.lobby-teams .pill { border-width: 2px; font-weight: 700; }
.names { display: flex; flex-wrap: wrap; gap: .6em; }
.names .chip { background: rgba(255,255,255,.1); color: #fff; font-weight: 700; font-size: 1.3em; padding: .35em .9em; border-width: 2px; animation: pop .3s ease; }

/* puan tablosu ve podyum */
.board-wrap { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3vw; padding-top: 4vh; max-width: 1500px; width: 100%; margin: 0 auto; align-items: start; }
.board-wrap:has(.board:only-child) { grid-template-columns: minmax(0, 900px); justify-content: center; }
.board h2 { font-size: 2em; }
.stage .board-row { font-size: 1.3em; background: rgba(255,255,255,.06); margin-bottom: .45em; }
.stage .board-row.r1 { background: linear-gradient(90deg, rgba(232,169,0,.45), rgba(232,169,0,.12)); }
.stage .board-row.r2 { background: linear-gradient(90deg, rgba(200,205,220,.35), rgba(200,205,220,.08)); }
.stage .board-row.r3 { background: linear-gradient(90deg, rgba(205,127,50,.4), rgba(205,127,50,.1)); }
.stage .board-row .rank { color: #fff; }
.podium-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5em; }
.big { font-size: 4em; font-weight: 900; }
.team-win { font-size: 1.8em; font-weight: 800; padding: .5em 1.2em; border-radius: 999px; background: var(--c); }
.podium { display: flex; align-items: flex-end; gap: 1.2em; }
.step { width: 13em; text-align: center; display: grid; gap: .3em; }
.p-name { font-size: 1.5em; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-score { color: var(--muted); font-weight: 700; }
.p-block { display: grid; place-items: center; font-size: 3em; font-weight: 900; border-radius: 16px 16px 0 0; }
.s1 .p-block { height: 8em; background: #8C2F39; }
.s2 .p-block { height: 5.5em; background: #9aa0b8; }
.s3 .p-block { height: 4em; background: #c27a3a; }

/* ============ yönetici ============ */
body.admin { min-height: 100vh; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.4rem; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar .spacer { flex: 1; }
.topbar h1 { font-size: 1.05rem; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 1.6rem 1.4rem 4rem; }
.login { max-width: 380px; margin: 14vh auto; }
.login form { display: grid; gap: .8rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.6rem 0 .8rem; }
.section-head h2 { margin: 0; font-size: 1.2rem; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.ev-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: grid; gap: .6rem; }
.ev-card h3 { margin: 0; font-size: 1.1rem; }
.ev-card .actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.live-dot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--good); margin-right: .4em; box-shadow: 0 0 0 4px rgba(20,163,127,.2); }
.editor { display: grid; gap: 1rem; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.panel h3 { font-size: 1rem; margin-bottom: .8rem; }
.fields { display: grid; gap: .8rem; }
.fields.two { grid-template-columns: 1fr 1fr; }
.fields.three { grid-template-columns: repeat(3, 1fr); }
.check-row { display: flex; align-items: center; gap: .5rem; font-weight: 600; cursor: pointer; }
.check-row input { width: auto; }
.act-card { border-left: 5px solid var(--accent); }
.act-card-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.act-card-head .chip.type { font-size: .75rem; }
.act-card-head .spacer { flex: 1; }
.opt-row { display: flex; gap: .5rem; align-items: center; }
.opt-row .letter { font-size: .8rem; }
.opt-row input[type=text] { flex: 1; }
.opt-row .correct-toggle { display: flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--muted); font-weight: 600; white-space: nowrap; cursor: pointer; }
.opt-row .correct-toggle input { width: auto; }
.add-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.add-bar .btn { font-size: .9rem; }
.sticky-save { position: sticky; bottom: 0; display: flex; gap: .6rem; justify-content: flex-end; padding: .8rem 0; background: linear-gradient(transparent, var(--bg) 30%); }
.sticky-save .spacer { flex: 1; }
.card-foot { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed var(--line); }
.card-foot .muted { font-size: .8rem; }
.act-card.has-err { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(224, 69, 58, .18); }

/* canlı kontrol */
.control { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; gap: 1rem; padding: 1rem 1.4rem 2rem; align-items: start; }
.steps { display: grid; gap: .35rem; max-height: calc(100vh - 120px); overflow: auto; }
.step-btn { display: flex; gap: .6rem; align-items: flex-start; text-align: left; padding: .6rem .7rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: .9rem; }
.step-btn .n { font-weight: 900; color: var(--muted); min-width: 1.4em; }
.step-btn small { display: block; color: var(--muted); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.step-btn.cur { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }
.step-btn.done .n { color: var(--good); }
.preview { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; position: relative; background: #14162b; }
.preview-inner { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; pointer-events: none; background: radial-gradient(1200px 700px at 15% -10%, #2a2d52 0%, transparent 60%), #14162b; }
.preview-inner .stage { min-height: 900px; height: 900px; font-size: 21px; overflow: hidden; }
.ctrl-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .8rem; }
.ctrl-bar .spacer { flex: 1; }
.phase-tag { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding: .3em .7em; border-radius: 999px; background: #efece4; }
.phase-tag.open { background: #dcf5ec; color: var(--good); }
.answer-key { margin-top: .8rem; padding: .7rem .9rem; border-radius: 12px; background: #fff7e0; border: 1px solid #f3df9a; font-size: .9rem; }
.side { display: grid; gap: 1rem; }
.side .panel { max-height: 46vh; overflow: auto; }
.person { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid #f0ede5; font-size: .9rem; }
.person .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person.off { opacity: .45; }
.person .sc { font-weight: 800; font-variant-numeric: tabular-nums; }
.x-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: .2em .4em; border-radius: 6px; }
.x-btn:hover { color: var(--bad); background: #fdeceb; }
.mod-item { padding: .6rem 0; border-bottom: 1px solid #f0ede5; display: grid; gap: .35rem; font-size: .9rem; }
.mod-item.hidden { opacity: .45; }
.mod-item .row { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.links { display: grid; gap: .4rem; font-size: .9rem; }
.links code { background: #f3f1ea; padding: .2em .45em; border-radius: 6px; word-break: break-all; }

@media (max-width: 1100px) {
  .control { grid-template-columns: 1fr; }
  .steps { max-height: none; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
@media (max-width: 700px) {
  .fields.two, .fields.three { grid-template-columns: 1fr; }
  .lobby, .board-wrap, .estimate-stage, .rating-stage { grid-template-columns: 1fr; }
}
.add-next { width: 100%; padding: 1rem; font-size: 1.05rem; border: 2px dashed var(--accent); color: var(--accent); background: #fff; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; gap: .3rem; }
.add-next:hover:not(:disabled) { border-color: var(--accent); background: #fff6f3; }
.add-next .plus { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; }

/* seçim penceresi */
.modal-back { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; background: rgba(20, 22, 43, .55); backdrop-filter: blur(3px); animation: fade .15s ease; }
.modal { width: min(520px, 100%); background: var(--card, #fff); color: var(--ink, #14162b); border-radius: 18px; padding: 1.4rem 1.4rem 1rem; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.modal h2 { margin: 0 0 .2rem; font-size: 1.3rem; }
.modal > p { margin: 0 0 1rem; }
.modal .choices { display: grid; gap: .6rem; }
.modal .choice { min-height: 0; box-shadow: none; display: grid; gap: .2rem; text-align: left; padding: .85rem 1rem; border: 2px solid var(--line, #e3e1da); border-radius: 12px; background: transparent; color: inherit; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.modal .choice:hover, .modal .choice:focus-visible { border-color: var(--accent); outline: none; }
.modal .choice.primary { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.modal .choice b { font-size: 1.02rem; }
.modal .choice small { color: var(--muted, #6b6f85); line-height: 1.35; }
.modal .choice:disabled { opacity: .6; cursor: wait; }
.modal-foot { display: flex; justify-content: flex-end; margin-top: .8rem; }
@keyframes fade { from { opacity: 0; } }

/* ============ yönetici: marka bandı tasarımı ============ */
body.admin { --bg: #f2f3f8; --line: #e3e5ee; --navy: #14162b; --navy-2: #1f2550; --navy-3: #2c3a8c; background: var(--bg); }
.admin .panel, .admin .ev-card { border-color: var(--line); box-shadow: 0 1px 2px rgba(20,22,43,.04), 0 10px 30px rgba(20,22,43,.06); }
.adm-band {
  position: relative; overflow: hidden; color: #fff; padding-bottom: 5.6rem;
  background: radial-gradient(900px 400px at 85% -20%, rgba(58,110,165,.45), transparent 60%), radial-gradient(700px 380px at 0% 120%, rgba(201,162,39,.28), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
}
.adm-band::after { /* logo karelerinden doğan ince desen */
  content: ""; position: absolute; right: -40px; top: 30px; width: 280px; height: 280px; opacity: .09; pointer-events: none;
  background: conic-gradient(from 0deg at 50% 50%, #C9A227 0 25%, #3A6EA5 0 50%, #2F7D6D 0 75%, #8C2F39 0);
  -webkit-mask: radial-gradient(circle, #000 0 30%, transparent 31%) 0 0 / 70px 70px; mask: radial-gradient(circle, #000 0 30%, transparent 31%) 0 0 / 70px 70px;
}
.adm-band.compact { padding-bottom: 1.2rem; }
.adm-top { position: relative; z-index: 2; display: flex; align-items: center; gap: .9rem; max-width: 1180px; margin: 0 auto; padding: .9rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.adm-band.compact .adm-top, .adm-hero.wide, .adm-band.compact .adm-hero { max-width: none; }
.adm-top .spacer { flex: 1; }
.adm-brand { display: flex; text-decoration: none; }
.adm-brand .logo, .login-brand .logo { color: #fff; }
.adm-tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .3em .75em; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); }
.adm-hero { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; max-width: 1180px; margin: 0 auto; padding: 2rem 1.4rem 0; }
.adm-band.compact .adm-hero { padding-top: 1rem; }
.adm-hero h1 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.adm-band.compact .adm-hero h1 { font-size: 1.35rem; }
.adm-hero p { margin: .35rem 0 0; color: rgba(255,255,255,.7); }
.adm-hero-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.adm-main { position: relative; z-index: 3; max-width: 1180px; margin: -4.2rem auto 0; padding: 0 1.4rem 4rem; }
.adm-band.compact + .adm-main { margin-top: 0; }
.adm-main.wide { max-width: none; padding: 1rem 1.4rem 2rem; }
.adm-main > .spinner { margin-top: 6rem; border-color: rgba(255,255,255,.3); border-top-color: #fff; }

.btn.ghost-light { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.btn.ghost-light:hover:not(:disabled) { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
.btn.light { background: #fff; border-color: #fff; color: var(--ink); }
a.btn.light { color: var(--ink); }
.btn.ai { background: linear-gradient(135deg, #8C2F39, #3A6EA5); border-color: transparent; color: #fff; }
.btn.ai:hover:not(:disabled) { filter: brightness(1.08); border-color: transparent; }
.adm-band .btn.primary { box-shadow: 0 6px 18px rgba(201,162,39,.35); }

/* özet kartları */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: var(--card); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: grid; gap: .1rem; box-shadow: 0 1px 2px rgba(20,22,43,.04), 0 10px 30px rgba(20,22,43,.08); border-top: 4px solid var(--c); }
.stat b { font-size: 2rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.section-head h2 { display: flex; align-items: center; }
.ev-card { position: relative; overflow: hidden; padding: 1.3rem 1.2rem 1.1rem; transition: transform .15s, box-shadow .15s; }
.ev-card:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(20,22,43,.12); }
.ev-strip { position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c, var(--accent)); }
.ev-meta { display: flex; gap: .4rem; flex-wrap: wrap; }
.ev-meta span { font-size: .8rem; font-weight: 600; color: var(--muted); background: #f1f2f7; border-radius: 999px; padding: .2em .65em; }
.ev-top { display: flex; justify-content: space-between; align-items: center; }
.ev-card.live { border: 2px solid var(--good); }
.live-chip { background: #dcf5ec; color: var(--good); font-weight: 800; font-size: .75rem; }
.list-panel { padding: .4rem 1.2rem; }
.list-panel .person:last-child { border-bottom: 0; }
.empty.panel { padding: 2.4rem; }
.chip.soft { background: #eef1fb; color: #3b4a8a; font-size: .75rem; font-weight: 700; }
.chip.ok { background: #dcf5ec; color: var(--good); }
.chip.warn { background: #fff3d1; color: #8a6400; font-size: .75rem; font-weight: 700; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.row.center { justify-content: center; }
.row.end { justify-content: flex-end; margin-top: .8rem; }
.small { font-size: .82rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }

/* giriş */
.login-screen {
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr minmax(320px, 420px); align-items: center; gap: 4vw; padding: 6vh 7vw; position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(900px 500px at 80% 0%, rgba(58,110,165,.5), transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(201,162,39,.35), transparent 60%), linear-gradient(135deg, #14162b, #1f2550 60%, #2c3a8c);
}
.login-art { position: absolute; inset: 0; pointer-events: none; }
.login-art i { position: absolute; width: 90px; height: 90px; border-radius: 22px; background: var(--c); opacity: .16; animation: float 9s ease-in-out infinite; animation-delay: calc(var(--i) * -2s); }
.login-art i:nth-child(1) { left: 6%; top: 12%; }
.login-art i:nth-child(2) { left: 40%; top: 72%; width: 60px; height: 60px; }
.login-art i:nth-child(3) { left: 56%; top: 10%; width: 46px; height: 46px; }
.login-art i:nth-child(4) { left: 12%; top: 78%; width: 120px; height: 120px; }
@keyframes float { 50% { transform: translateY(-18px) rotate(8deg); } }
.login-side { position: relative; z-index: 1; display: grid; gap: 1.2rem; max-width: 560px; }
.login-side h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; margin: 1rem 0 0; }
.login-side h1 span { background: linear-gradient(90deg, #E0C46A, #E9D9A6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-side p { color: rgba(255,255,255,.72); font-size: 1.1rem; max-width: 44ch; }
.login.card { position: relative; z-index: 1; margin: 0; max-width: none; color: var(--ink); padding: 2rem; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.login h2 { font-size: 1.4rem; margin: 0; }
.login form { margin-top: 1.2rem; }

/* düzenleyici */
.big-input { font-size: 1.2rem; font-weight: 700; }
.panel > h3 { display: flex; align-items: center; }
.settings summary, details.tr summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .4rem; }
.settings summary::-webkit-details-marker, details.tr summary::-webkit-details-marker { display: none; }
.settings summary::after, details.tr summary::after { content: "›"; margin-left: auto; font-size: 1.3rem; color: var(--muted); transition: transform .15s; }
.settings[open] summary::after, details.tr[open] summary::after { transform: rotate(90deg); }
.fields.four { grid-template-columns: repeat(4, 1fr); }
.pts-box { display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem; padding-bottom: .4rem; }
.chip-checks { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip-check { display: inline-flex; align-items: center; gap: .4rem; margin: 0; padding: .4em .8em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; font-size: .88rem; }
.chip-check input { width: auto; accent-color: var(--accent); margin: 0; }
.chip-check:has(input:checked), .chip-check.on { border-color: var(--accent); background: #fff4f1; }
.chip-check.main { border-color: var(--ink); }
.chip-check small { color: var(--muted); font-weight: 600; }
.flow-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .8rem; }
.flow-head h2 { margin: 0; font-size: 1.35rem; }
.act-card { border-left: 5px solid var(--c, var(--accent)); }
.act-no { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; border-radius: 9px; background: var(--navy, #14162b); color: #fff; font-weight: 800; font-size: .85rem; }
.type-badge { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .9rem; }
.help { margin: -.3rem 0 .9rem; color: var(--muted); font-size: .85rem; background: #f6f7fb; border-radius: 10px; padding: .55rem .75rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg-btn { border: 0; background: #fff; padding: .6em 1.3em; font-weight: 700; cursor: pointer; }
.seg-btn.on { background: var(--good); color: #fff; }
.img-field { display: grid; gap: .5rem; }
.img-prev { display: grid; place-items: center; min-height: 80px; max-width: 320px; border: 1px dashed var(--line); border-radius: 12px; overflow: hidden; background: #fafbfd; }
.img-prev img { max-width: 100%; max-height: 200px; display: block; }
.img-field input[type=file] { width: auto; border: 0; padding: 0; }
.pin-edit { display: grid; gap: .5rem; }
.pin-edit .pin-box { max-width: 520px; cursor: crosshair; }
details.tr { border: 1px solid var(--line); border-radius: 12px; padding: .65rem .9rem; background: #fafbfd; }
details.tr summary { font-weight: 700; font-size: .9rem; }
details.tr[open] summary { margin-bottom: .7rem; }
.tr-block { display: grid; grid-template-columns: 110px 1fr; gap: .8rem; padding: .6rem 0; border-top: 1px dashed var(--line); }
.tr-lang { font-weight: 800; font-size: .85rem; padding-top: .4rem; }
.add-groups { display: grid; gap: 1rem; }
.add-group small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.add-tile { display: inline-flex; align-items: center; gap: .45rem; padding: .55em .9em; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: .9rem; transition: border-color .15s, transform .1s, box-shadow .15s; }
.add-tile:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(201,162,39,.12); transform: translateY(-1px); }
.add-tile .ico { font-size: 1.1rem; }
.start-empty { display: grid; gap: .6rem; justify-items: center; }
.sticky-save { background: linear-gradient(transparent, var(--bg) 35%); }

/* pencereler */
.modal { max-height: calc(100vh - 2rem); display: flex; flex-direction: column; }
.modal.wide { width: min(780px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.modal-head .x-btn { font-size: 1.1rem; }
.modal > p.muted { margin: 0 0 1rem; }
.modal-body { overflow: auto; display: grid; gap: .9rem; padding: .2rem .1rem; }
.modal-foot { gap: .5rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.import-help { display: grid; gap: .4rem; background: #f6f7fb; border-radius: 12px; padding: .8rem 1rem; font-size: .88rem; justify-items: start; }
.import-sum { font-weight: 800; padding: .6rem .8rem; border-radius: 10px; background: #f1f2f7; }
.import-sum.ok { background: #dcf5ec; color: #0d6e55; }
.import-list { margin: .6rem 0 0; padding-left: 1.6rem; max-height: 220px; overflow: auto; font-size: .9rem; display: grid; gap: .25rem; }
.import-err { margin-top: .5rem; color: var(--bad); font-size: .85rem; display: grid; gap: .2rem; background: #fdeceb; padding: .6rem .8rem; border-radius: 10px; }
.ai-wait { display: grid; justify-items: center; gap: .3rem; padding: 1.4rem; }
.ai-list { display: grid; gap: .4rem; margin-top: .6rem; max-height: 340px; overflow: auto; }
.ai-q { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 12px; margin: 0; color: var(--ink); font-weight: 400; font-size: .92rem; cursor: pointer; }
.ai-q input { width: auto; margin-top: .25rem; accent-color: var(--accent); }
.ai-q .muted { font-size: .82rem; margin-top: .2rem; }

/* canlı kontrol */
.adm-main.wide .control { padding: 0; }
.steps { max-height: calc(100vh - 190px); }
.preview { box-shadow: 0 12px 34px rgba(20,22,43,.18); }
.ctrl-bar.main { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .6rem .7rem; }

@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .login-screen { grid-template-columns: 1fr; }
  .fields.four { grid-template-columns: 1fr 1fr; }
  .tr-block { grid-template-columns: 1fr; }
}

/* ============ sunum ekranı: tamamlayıcılar ============ */
.stage { background: radial-gradient(1200px 700px at 15% -10%, var(--stage-bg2, #2a2d52) 0%, transparent 60%), var(--stage-bg, #14162b); }
.stage.on-light { --muted: #5b5f78; --card: rgba(20,22,43,.06); color: var(--ink); }
.stage.on-light .logo, .stage.on-light .answered b { color: var(--ink); }
.brand-logo { display: block; max-width: 220px; object-fit: contain; }
.stage-company { font-weight: 800; opacity: .9; }
.join-logo { max-height: 70px; max-width: 70%; margin: 0 auto .6em; object-fit: contain; }
.q-alt { display: flex; flex-wrap: wrap; gap: .3em 1.2em; margin: -.1em 0 .4em; color: var(--muted); font-size: 1.15em; font-style: italic; }
.q-media { display: flex; justify-content: center; margin: .4em 0 1em; }
.q-media img { max-height: 30vh; max-width: 100%; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.stage .chip { background: rgba(255,255,255,.1); color: inherit; }
.stage .chip.ok { background: var(--good); color: #fff; }
.accepted { display: grid; justify-items: center; gap: .2em; }
.accepted b { font-size: 3em; color: var(--accent); }
.typed { display: flex; flex-wrap: wrap; justify-content: center; gap: .5em; font-size: 1.15em; }
.open-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9em; }
.open-card { background: var(--card); border-radius: 14px; padding: .9em 1.1em; border-top: 5px solid var(--accent); font-weight: 600; display: grid; gap: .3em; animation: pop .35s ease; }
.board.teams { display: flex; flex-direction: column; }
.towers { display: flex; align-items: flex-end; justify-content: center; gap: 1.2em; height: 50vh; margin-top: 1em; }
.preview-inner .towers { height: 420px; }
.tower { flex: 1; max-width: 9em; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .3em; text-align: center; }
.tower-bar { position: relative; width: 100%; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c)); border-radius: 14px 14px 4px 4px; transition: height .6s cubic-bezier(.2,.8,.2,1); min-height: 6px; }
.tower.lead .tower-bar { box-shadow: 0 0 0 3px rgba(255,255,255,.6), 0 10px 30px rgba(0,0,0,.3); }
.tower-score { font-weight: 900; font-size: 1.3em; font-variant-numeric: tabular-nums; }
.tower-name { font-weight: 800; }
.crown { position: absolute; top: -1.3em; left: 50%; transform: translateX(-50%); font-size: 1.6em; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.preview-inner .confetti { position: absolute; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.preview-inner .podium-wrap, .podium-wrap { position: relative; z-index: 2; }

/* görselde işaretle */
.pin-box { position: relative; display: inline-block; max-width: 100%; margin: 0 auto; line-height: 0; border-radius: 14px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.pin-box img { display: block; max-width: 100%; max-height: 58vh; }
.preview-inner .pin-box img { max-height: 520px; }
.pin-box.tap { cursor: crosshair; touch-action: manipulation; }
.pin-box.tap img { max-height: none; width: 100%; }
.pin-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); animation: pop .3s ease; }
.pin-dot.mine { width: 26px; height: 26px; margin: -13px 0 0 -13px; border-width: 3px; }
.pin-target { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; border: 3px dashed #fff; background: rgba(20,163,127,.35); box-shadow: 0 0 0 2px rgba(0,0,0,.25); pointer-events: none; aspect-ratio: 1; height: auto !important; }
.stack > .pin-box { justify-self: center; }

/* NPS */
.nps { display: grid; grid-template-columns: minmax(200px, .6fr) 2fr; gap: 2em; align-items: end; }
.nps-score { display: grid; gap: .2em; }
.nps-score b { font-size: 5.5em; line-height: 1; font-weight: 900; }
.nps-split { display: grid; gap: .2em; font-weight: 700; }
.nps .cols { height: 36vh; }
.preview-inner .nps .cols, .preview-inner .cols { height: 340px; }
.nps.small { grid-template-columns: 1fr; gap: 1em; }
.nps.small .nps-score b { font-size: 3rem; }
.nps.small .cols { height: 160px; gap: .3em; }
.nps.small .col-num { font-size: .8rem; }
.nps-pick { grid-template-columns: repeat(6, 1fr); }
.nps-pick .scale-btn { min-height: 52px; color: #fff; border: 0; font-weight: 800; }
.nps-pick .nd { background: var(--bad); }
.nps-pick .np { background: var(--mid); }
.nps-pick .ng { background: var(--good); }

/* tombala */
.bingo-stage { position: relative; flex: 1; display: grid; grid-template-columns: minmax(220px, .7fr) 2fr minmax(220px, .8fr); gap: 2em; align-items: start; margin-top: 1em; }
.bingo-left { display: grid; justify-items: center; gap: .6em; text-align: center; }
.ball { display: grid; place-items: center; width: 6.5em; height: 6.5em; border-radius: 50%; font-size: 1.6em; font-weight: 900; color: var(--ink); background: radial-gradient(circle at 35% 30%, #fff, #ffe08a 45%, #8C2F39); box-shadow: inset 0 -8px 0 rgba(0,0,0,.12), 0 14px 40px rgba(0,0,0,.35); animation: pop .4s ease; }
.ball.empty { background: rgba(255,255,255,.12); color: var(--muted); box-shadow: none; }
.ball.small { width: 3.2em; height: 3.2em; font-size: 1.2rem; flex: none; }
.ball-label, .draw-count, .next-in { color: var(--muted); font-weight: 600; }
.draw-count b, .next-in b { color: #fff; }
.recent { display: flex; gap: .35em; flex-wrap: wrap; justify-content: center; }
.mini-ball { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: rgba(255,255,255,.14); font-weight: 800; font-size: .9em; }
.bb { display: grid; grid-template-columns: repeat(10, 1fr); gap: .35em; }
.bb-cell { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.4); font-weight: 800; font-size: .95em; }
.bb-cell.on { background: var(--accent); color: #fff; }
.bb-cell.last { background: #E9D9A6; color: var(--ink); transform: scale(1.12); box-shadow: 0 0 0 3px #fff; }
.prizes { display: grid; gap: .6em; }
.prizes h3 { color: var(--muted); font-size: 1em; }
.prize { padding: .8em 1em; border-radius: 14px; background: rgba(255,255,255,.07); display: grid; gap: .2em; }
.prize.won { background: linear-gradient(90deg, rgba(232,169,0,.45), rgba(232,169,0,.12)); }
.prize-head { display: flex; justify-content: space-between; gap: .5em; }
.prize-win { font-weight: 700; }
.bingo-banner { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 5; text-align: center; padding: .6em 1.4em; border-radius: 24px; background: var(--accent); color: #fff; font-size: 3em; font-weight: 900; box-shadow: 0 20px 60px rgba(0,0,0,.45); animation: pop .4s ease; }
.bingo-banner.big { background: linear-gradient(135deg, #8C2F39, #C9A227); font-size: 4.4em; }
.bingo-banner small { display: block; font-size: .4em; font-weight: 700; }
.bingo-info { display: flex; gap: .8rem; align-items: center; }
.bingo-card { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; background: var(--card); padding: 6px; border-radius: 14px; box-shadow: var(--shadow); }
.bc { aspect-ratio: 1; display: grid; place-items: center; border-radius: 7px; border: 0; background: #f1f2f7; font-weight: 800; font-size: clamp(.8rem, 3.6vw, 1.1rem); cursor: pointer; padding: 0; color: var(--ink); }
.bc.empty { background: transparent; cursor: default; }
.bc.on { background: var(--accent); color: #fff; }
.bc.last { box-shadow: 0 0 0 3px #E9D9A6; }

/* slayt */
.slide-act { justify-content: center; }
.slide { flex: 1; display: grid; align-content: center; gap: 1em; position: relative; }
.slide h1 { font-size: 3.2em; font-weight: 900; letter-spacing: -.02em; }
.slide p { font-size: 1.5em; color: rgba(255,255,255,.85); max-width: 60ch; }
.slide.with-img, .slide.l-classic { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 3em; }
.slide-img img { width: 100%; max-height: 64vh; object-fit: cover; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.slide.l-title { text-align: center; justify-items: center; }
.slide.l-title h1 { font-size: 5em; }
.slide.l-title .sub { font-size: 1.8em; }
.slide-bgimg { position: absolute; inset: -3vh -3vw; z-index: -1; opacity: .3; }
.slide-bgimg img { width: 100%; height: 100%; object-fit: cover; }
.slide.l-title { z-index: 0; }
.slide ul { margin: 0; padding-left: 1.2em; display: grid; gap: .5em; font-size: 1.6em; font-weight: 600; }
.slide ul li::marker { color: var(--accent); }
.slide.l-quote { text-align: center; justify-items: center; }
.slide blockquote { margin: 0; font-size: 2.8em; font-weight: 800; line-height: 1.2; max-width: 30ch; }
.slide blockquote::before { content: "“"; display: block; font-size: 2em; line-height: .6; color: var(--accent); }
.slide cite { font-size: 1.4em; color: var(--muted); font-style: normal; font-weight: 700; }
.slide.l-image { place-items: center; }
.slide.l-image img { max-width: 100%; max-height: 72vh; border-radius: 18px; }
.slide .caption { font-size: 1.6em; font-weight: 800; }
.slide-ico { font-size: 4rem; }

/* çark */
.wheel-stage { flex: 1; display: grid; grid-template-columns: auto minmax(260px, 1fr); gap: 3em; align-items: center; justify-content: center; }
.wheel-wrap { position: relative; filter: drop-shadow(0 18px 40px rgba(0,0,0,.4)); }
.wheel-wrap svg { display: block; width: 100%; height: 100%; }
.wheel-pointer { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); z-index: 2; width: 0; height: 0; border-left: 22px solid transparent; border-right: 22px solid transparent; border-top: 44px solid #fff; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.wheel-side { display: grid; gap: 1.2em; align-content: center; }
.wheel-win { display: grid; gap: .2em; padding: 1em 1.4em; border-radius: 22px; background: linear-gradient(135deg, #8C2F39, #C9A227); color: #fff; animation: pop .45s ease; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.wheel-win small { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wheel-win b { font-size: 2.6em; line-height: 1.1; word-break: break-word; }
.wheel-win span { font-weight: 800; }
.wheel-list h3 { color: var(--muted); font-size: 1em; }
.stage .wheel-list .board-row { background: rgba(255,255,255,.06); margin-bottom: .35em; }
.wheel-win-phone { display: grid; justify-items: center; gap: .2rem; padding: 1.4rem; border-radius: var(--radius); background: var(--ink); color: #fff; }
.wheel-win-phone b { font-size: 1.8rem; }

/* jokerler ve telefon tamamlayıcıları */
.jokers { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .5rem .7rem; border-radius: 12px; background: #fff; border: 1px dashed var(--line); }
.jokers .muted { font-weight: 700; font-size: .85rem; margin-right: auto; }
.btn.joker { border-color: #8C2F39; color: #8C2F39; font-weight: 800; }
.chip.joker-on { background: linear-gradient(135deg, #8C2F39, #3A6EA5); color: #fff; font-weight: 800; }
.choice.gone { opacity: .12 !important; filter: grayscale(1); text-decoration: line-through; }
.btn.team.lang { border-color: var(--ink); }
.btn.team.lang::before { display: none; }

@media (max-width: 1100px) {
  .bingo-stage, .wheel-stage, .nps { grid-template-columns: 1fr; }
}
.screen .wheel-wrap { width: min(64vh, 48vw) !important; height: min(64vh, 48vw) !important; }
.fields > .btn.small { justify-self: start; }
.modal input[type=file], .tr input[type=file] { width: auto; border: 0; padding: 0; box-shadow: none; }
.adm-me { font-size: .85rem; color: rgba(255,255,255,.75); margin-right: .6rem; max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* site yönetimi */
.adm-top .btn.on { background: rgba(255,255,255,.16); }
.switch-box { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: .5rem .8rem; }
.switch { display: inline-flex; align-items: center; gap: .6rem; margin: 0; color: #fff; font-weight: 700; font-size: .92rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 42px; height: 24px; border-radius: 99px; background: rgba(255,255,255,.3); transition: background .15s; flex: none; }
.switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .switch-ui { background: var(--good); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid #fff; outline-offset: 2px; }
.site-panel { margin-top: 1rem; }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); }
.tab { border: 0; background: transparent; padding: .6rem .9rem; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--ink); border-bottom-color: var(--accent); }
.site-panel input[type=search] { max-width: 360px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; padding: .5rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: .65rem .6rem; border-bottom: 1px solid #f0f1f6; vertical-align: middle; }
.tbl tr:hover td { background: #fafbfd; }
.tbl tr.off td { opacity: .6; }
.tbl td.num { text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.tbl td.acts { white-space: nowrap; text-align: right; }
.tbl a, .lead a { color: #2f4fd1; text-decoration: none; }
.leads { display: grid; gap: .6rem; }
.lead { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; display: grid; gap: .25rem; }
.lead-head { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.lead-head .spacer { flex: 1; }
.lead p { margin: .2rem 0 0; white-space: pre-wrap; }

/* paket, hesabım */
.adm-me.link { color: #fff; text-decoration: none; padding: .3em .7em; border-radius: 9px; border: 1px solid transparent; }
.adm-me.link:hover, .adm-me.link.on { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
.plan-note { display: flex; align-items: center; gap: 1rem; justify-content: space-between; flex-wrap: wrap; background: #fff8e6; border: 1px solid #f3df9a; border-radius: 14px; padding: .8rem 1rem; margin-bottom: 1rem; box-shadow: 0 10px 30px rgba(20,22,43,.06); }
.chip.plan-free { background: #eef0f5; color: #4b5068; font-weight: 800; }
.chip.plan-pro { background: linear-gradient(135deg, #8C2F39, #3A6EA5); color: #fff; font-weight: 800; }
.chip.plan-enterprise { background: #14162b; color: #E9D9A6; font-weight: 800; }
.plan-now { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.plan-buys { display: flex; gap: .8rem; flex-wrap: wrap; }
.plan-buy { display: grid; justify-items: start; gap: .1rem; min-width: 190px; padding: 1rem 1.2rem; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; text-align: left; transition: border-color .15s, transform .1s, box-shadow .15s; }
.plan-buy:hover { border-color: #8C2F39; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(201,162,39,.15); }
.plan-buy small { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-size: .72rem; }
.plan-buy b { font-size: 1.6rem; font-weight: 900; }
.plan-buy span { color: var(--muted); font-size: .85rem; }
.plan-buy em { font-style: normal; font-weight: 800; color: var(--good); font-size: .8rem; }
.danger-zone { border-color: #f5c6c2 !important; }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.cfg-list { display: grid; gap: .4rem; }
.cfg { padding: .55rem .8rem; border-radius: 10px; font-size: .88rem; font-weight: 600; }
.cfg.ok { background: #dcf5ec; color: #0d6e55; }
.cfg.warn { background: #fff3d1; color: #7a5a00; }
.plan-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: .8rem; }
.plan-card { border: 1px solid var(--line); border-radius: 14px; padding: 1rem; display: grid; gap: .5rem; align-content: start; }
.plan-card h3 { margin: 0; }
#iyzipay-checkout-form { min-height: 120px; }
@media (max-width: 860px) { .plan-grid { grid-template-columns: 1fr; } }

/* ============ yönetim paneli: sade, kurumsal görünüm (sitedeki tarzla aynı) ============ */
body.admin {
  --bg: #f7f7f9; --card: #fff; --line: #e4e5ea; --muted: #646878;
  --accent: #14162b; --accent-ink: #fff; --radius: 10px;
  --shadow: none;
  background: var(--bg);
}
body.admin .preview-inner, body.admin .stage { --accent: #C9A227; }
.admin .panel, .admin .ev-card, .admin .stat, .admin .card { box-shadow: none; border: 1px solid var(--line); border-radius: 10px; }

/* üst bant: koyu geçiş yerine beyaz bant */
.adm-band { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 1.8rem; }
.adm-band::after { display: none; }
.adm-band.compact { padding-bottom: 1.1rem; }
.adm-top { border-bottom: 1px solid var(--line); }
.adm-brand .logo { color: var(--ink); }
.adm-tag { background: #f1f2f5; color: var(--muted); letter-spacing: .08em; }
.adm-hero h1 { font-weight: 700; letter-spacing: -.02em; }
.adm-hero p, .adm-me { color: var(--muted); }
.adm-main { margin-top: 1.6rem; }
.adm-band.compact + .adm-main { margin-top: 1.2rem; }
.adm-main > .spinner { border-color: #e4e5ea; border-top-color: var(--ink); }
.adm-me.link { color: var(--ink); font-weight: 600; }
.adm-me.link:hover, .adm-me.link.on { border-color: var(--line); background: #f5f6f8; }
.btn.ghost-light { border-color: var(--line); color: var(--ink); background: #fff; }
.btn.ghost-light:hover:not(:disabled) { background: #f5f6f8; border-color: #c9cbd3; }
.adm-top .btn.on { background: #f1f2f5; }
.btn.light { background: #fff; border-color: var(--line); color: var(--ink); }
.adm-band .btn.primary { box-shadow: none; }
.switch-box { background: #f5f6f8; border-color: var(--line); }
.switch { color: var(--ink); }
.switch-ui { background: #c9cbd3; }
.switch input:focus-visible + .switch-ui { outline-color: var(--ink); }

/* butonlar ve alanlar */
.admin .btn { border-radius: 8px; font-weight: 600; }
.admin .btn.primary:hover:not(:disabled) { background: #2a2d48; border-color: #2a2d48; }
.admin .btn.ai { background: #fff; border-color: var(--line); color: var(--ink); }
.admin .btn.ai:hover:not(:disabled) { filter: none; border-color: #c9cbd3; }
.admin input:focus, .admin textarea:focus, .admin select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,22,43,.08); }

/* özet kartları: renkli üst çizgi yok */
.stat { border-top: 1px solid var(--line); padding: 1rem 1.2rem; }
.stat b { font-weight: 700; font-size: 1.7rem; }
.stat span { font-weight: 500; }
.ev-strip { display: none; }
.ev-card { padding: 1.1rem 1.2rem 1rem; }
.ev-card:hover { transform: none; box-shadow: none; border-color: #c9cbd3; }
.ev-meta span, .chip.soft { background: #f1f2f5; color: var(--muted); }
.admin .chip.plan-pro { background: #14162b; color: #fff; }
.admin .chip.plan-enterprise { background: #14162b; color: #fff; }

/* düzenleyici */
.act-card { border-left: 1px solid var(--line); }
.act-no { border-radius: 6px; }
.chip-check:has(input:checked), .chip-check.on { border-color: var(--ink); background: #f1f2f5; }
.add-next { border: 1px dashed #b9bcc6; color: var(--ink); }
.add-next:hover:not(:disabled) { border-color: var(--ink); background: #fff; }
.add-next .plus { background: var(--ink); }
.add-tile { border-radius: 8px; }
.add-tile:hover { border-color: var(--ink); box-shadow: none; transform: none; }
.step-btn.cur { box-shadow: 0 0 0 3px rgba(20,22,43,.08); }
.tab.on { border-bottom-color: var(--ink); }
.plan-note { background: #f7f7f9; border-color: var(--line); border-radius: 10px; }
.plan-buy, .plan-card, .lead { border-radius: 10px; }
.plan-buy:hover { border-color: var(--ink); box-shadow: none; transform: none; }
.tbl a, .lead a { color: var(--ink); text-decoration: underline; }

/* eski yönetici girişi: açık zemin */
.login-screen { background: #f7f7f9; color: var(--ink); }
.login-art { display: none; }
.login-brand .logo { color: var(--ink); }
.login-side h1 span { background: none; color: inherit; -webkit-text-fill-color: currentColor; }
.login-side p { color: var(--muted); }
.login.card { border: 1px solid var(--line); box-shadow: none; border-radius: 12px; }

/* ============ müşteri paneli: sol menülü, renkli düzen ============ */
.ws { display: grid; grid-template-columns: 236px 1fr; grid-template-rows: auto 1fr; min-height: 100vh; }
.ws-top { grid-column: 1 / -1; display: flex; align-items: center; gap: .8rem; padding: .7rem 1.4rem; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.ws-top .spacer { flex: 1; }
.ws-top .btn.primary { background: #14213D; border-color: #14213D; display: inline-flex; align-items: center; gap: .35rem; }
.ws-top .btn.primary:hover:not(:disabled) { background: #0D1830; border-color: #0D1830; }
.ic { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; } .ic svg { width: 100%; height: 100%; }
.ws-me { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.ws-ava { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #8C2F39; color: #fff; font-weight: 800; font-size: .8rem; }
.ws-side { background: #fff; border-right: 1px solid var(--line); padding: 1rem .7rem; display: flex; flex-direction: column; justify-content: space-between; position: sticky; top: 59px; height: calc(100vh - 59px); }
.ws-nav { display: grid; gap: .25rem; }
.ws-link { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.ws-link:hover { background: #f1f2f6; }
.ws-link.on { background: #14162b; color: #fff; }
.ws-main { padding: 1.6rem 2rem 4rem; min-width: 0; }
.ws-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.ws-head h1 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.ws-head p { margin: .3rem 0 0; color: var(--muted); }
.ws .sticky-save { padding-left: 0; }
.link { color: #14213D; font-weight: 600; text-decoration: underline; font-size: .92rem; }

.home { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.4rem; align-items: start; }
.home-main { display: grid; gap: 1.4rem; min-width: 0; }
.home .section-head { margin: 0 0 .8rem; }
.tbx-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.tbx-head h2, .create h2 { margin: 0; font-size: 1.15rem; }
.tbx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tbx-card { position: relative; display: grid; gap: .35rem; align-content: start; padding: .6rem .6rem 2.6rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.tbx-card:hover { border-color: #c9cbd3; box-shadow: 0 8px 22px rgba(20,22,43,.08); }
.tbx-card b { padding: .3rem .3rem 0; } .tbx-card > span:not(.go) { padding: 0 .3rem; color: var(--muted); font-size: .88rem; }
.tbx-art, .cover { position: relative; border-radius: 9px; overflow: hidden; aspect-ratio: 200 / 112; }
.cover-art, .cover-art svg { display: block; width: 100%; height: 100%; }
.go { position: absolute; right: .7rem; bottom: .7rem; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f1f2f6; color: var(--ink); }
.go .ic { width: 16px; height: 16px; }
.cover-badge { position: absolute; right: .45rem; bottom: .45rem; background: rgba(20,22,43,.82); color: #fff; font-size: .75rem; font-weight: 700; padding: .15em .55em; border-radius: 6px; }

.todo-row { position: relative; display: flex; align-items: center; gap: .9rem; padding: .85rem 3rem .85rem .9rem; border: 1px solid var(--line); border-radius: 10px; margin-top: .6rem; text-decoration: none; color: var(--ink); }
.todo-row:hover { border-color: #c9cbd3; }
.todo-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #c9cbd3; flex: none; }
.todo-row.done .todo-ic { background: #3A6EA5; border-color: #3A6EA5; color: #fff; }
.todo-row.done .todo-tx b { text-decoration: line-through; color: var(--muted); }
.todo-tx { display: grid; gap: .1rem; } .todo-tx span { color: var(--muted); font-size: .88rem; }
.todo-row .go { top: 50%; bottom: auto; transform: translateY(-50%); }

.create { display: grid; gap: .7rem; position: sticky; top: 80px; padding: 1.4rem; border-top: 4px solid #C9A227 !important; }
.create h2 { text-align: center; margin: .2rem 0 .6rem; font-size: 1.3rem; }
.create-row { display: flex; align-items: center; gap: .9rem; padding: .9rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; width: 100%; }
.create-row:hover { border-color: #c9cbd3; background: #fafbfd; }
.create-row > span:last-child { display: grid; gap: .1rem; min-width: 0; }
.create-row small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.create-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #fff; flex: none; }
.create-ic.c1 { background: #8C2F39; } .create-ic.c2 { background: #3A6EA5; } .create-ic.c3 { background: #C9A227; color: #14213D; }
.create-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .4rem; padding-top: .9rem; border-top: 1px solid var(--line); text-align: center; }
.create-stats b { display: block; font-size: 1.4rem; } .create-stats span { color: var(--muted); font-size: .82rem; }

.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.lib-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; transition: box-shadow .15s, border-color .15s; }
.lib-card:hover { border-color: #c9cbd3; box-shadow: 0 8px 22px rgba(20,22,43,.08); }
.lib-cover .cover { border-radius: 0; }
.lib-body { padding: .8rem .9rem .9rem; display: grid; gap: .5rem; }
.lib-title { display: flex; align-items: flex-start; justify-content: space-between; gap: .4rem; }
.icon-btn { border: 0; background: transparent; padding: .2rem; border-radius: 6px; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: #f1f2f6; color: var(--ink); }
.lib-acts { display: flex; gap: .4rem; }
.lib-tools { margin-bottom: 1rem; }
.search { display: flex; align-items: center; gap: .5rem; max-width: 420px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); }
.search input { border: 0; box-shadow: none !important; padding: .7rem 0; }
.rep { padding: .4rem 1rem; }
.rep-row { cursor: pointer; }
.rep-ev { display: flex; align-items: center; gap: .8rem; }
.rep-ev .cover { width: 88px; flex: none; border-radius: 6px; }
.big-empty { display: grid; justify-items: center; gap: .6rem; text-align: center; }
.big-empty .cover { width: 220px; }

@media (max-width: 1100px) { .home { grid-template-columns: 1fr; } .create { position: static; } }
@media (max-width: 860px) {
  .ws { grid-template-columns: 1fr; }
  .ws-side { position: static; height: auto; flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); padding: .4rem; overflow-x: auto; }
  .ws-nav { display: flex; } .ws-side-foot { display: none; } .ws-me-nm { display: none; }
  .ws-main { padding: 1.2rem 1rem 3rem; } .tbx-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ws-link { white-space: nowrap; padding: .55rem .8rem; }
  .ws-top { padding: .6rem 1rem; gap: .5rem; }
  .tbx-card { grid-template-columns: 96px 1fr; column-gap: .8rem; padding: .6rem 2.8rem .6rem .6rem; align-items: center; }
  .tbx-art { grid-row: span 2; }
  .tbx-card b, .tbx-card > span:not(.go) { padding: 0; }
  .tbx-card .go { top: 50%; bottom: auto; transform: translateY(-50%); }
}
@media (max-width: 860px) {
  .ws { grid-template-columns: minmax(0, 1fr); }
  .ws > * { min-width: 0; }
  .ws-top .btn.primary { padding: .5em .8em; }
}
@media (max-width: 480px) {
  .ws-top .btn.primary { font-size: 0; gap: 0; padding: .55rem; }
  .ws-top .btn.primary .ic { font-size: 1.1rem; }
}

/* ============ kullanıcı menüsü ve ayarlar ============ */
button.ws-me { border: 1px solid transparent; background: transparent; padding: .2rem .5rem .2rem .2rem; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem; }
button.ws-me:hover, button.ws-me[aria-expanded="true"] { border-color: var(--line); background: #f5f6f8; }
.ws-ava { background: #14213D; color: #C9A227; }
.ws-ava.big { width: 72px; height: 72px; font-size: 1.5rem; }
.ws-pop { position: fixed; z-index: 60; width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(16,24,39,.18); overflow: hidden; animation: fade .12s ease; }
.pop-head { display: grid; justify-items: center; gap: .3rem; padding: 1.4rem 1.2rem 1.1rem; background: #f7f7f9; border-bottom: 1px solid var(--line); text-align: center; }
.pop-head b { font-size: 1.05rem; margin-top: .3rem; }
.pop-head .muted { font-size: .88rem; }
.pop-head .row { margin-top: .6rem; }
.pop-list { display: grid; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.pop-item { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .75rem 1.2rem; border: 0; background: transparent; font: inherit; font-weight: 500; color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.pop-item:hover { background: #f5f6f8; }
.pop-item.out { color: #c2255c; padding: .9rem 1.2rem; }
.chip.plan-free { background: #eef0f5; color: #4b5068; }
.admin .chip.plan-pro { background: #3A6EA5; color: #14213D; }
.admin .chip.plan-enterprise { background: #14213D; color: #C9A227; }

.set { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.set-nav { display: grid; gap: .2rem; position: sticky; top: 80px; }
.set-link { padding: .7rem .9rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.set-link:hover { background: #eef0f4; }
.set-link.on { background: #e9f7d0; color: #14213D; font-weight: 700; box-shadow: inset 3px 0 0 #8fbf1f; }
.set-body { display: grid; gap: 1.1rem; min-width: 0; }
.set-title { margin: 0 0 .2rem; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.set-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.set-card { display: grid; gap: 1rem; padding: 1.4rem; }
.set-card h3 { margin: 0; }
.set-card > p { margin: -.5rem 0 0; }
.set-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.set-f { display: grid; gap: .35rem; margin: 0; font-weight: 700; font-size: .9rem; color: var(--ink); }
.set-f small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.set-f input:disabled { background: #f3f4f6; color: var(--muted); }
.set-ava { display: flex; align-items: center; gap: 1rem; }
.set-ava > div { display: grid; gap: .15rem; }
.set-info { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.2rem; font-size: .92rem; padding: 1rem; background: #f7f7f9; border-radius: 10px; }
.set-info b { color: var(--muted); font-weight: 600; }
.set-save { display: flex; justify-content: flex-end; }
.set-h { margin: .4rem 0 0; }
.plan-hero { grid-template-columns: 1fr minmax(260px, 340px); align-items: center; }
.plan-hero h2 { margin: .1rem 0 .3rem; font-size: 1.7rem; }
.plan-hero p { margin: 0; }
.plan-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.plan-col { position: relative; display: grid; gap: .7rem; align-content: start; padding: 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.plan-col.on { border: 2px solid #14213D; }
.plan-col h3 { margin: 0; }
.plan-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .9rem; }
.plan-col li { display: flex; gap: .5rem; align-items: flex-start; }
.plan-col li .ic { color: #1f9e57; width: 1rem; height: 1rem; margin-top: .15rem; }
.plan-dot { width: 34px; height: 8px; border-radius: 99px; }
.plan-dot.p-free { background: #c9cbd3; } .plan-dot.p-pro { background: #3A6EA5; } .plan-dot.p-enterprise { background: #8C2F39; }
.plan-act { margin-top: .4rem; }
@media (max-width: 1000px) { .set-grid, .plan-cols, .plan-hero { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .set { grid-template-columns: 1fr; }
  .set-nav { position: static; display: flex; overflow-x: auto; gap: .3rem; }
  .set-link { white-space: nowrap; }
  .set-cols { grid-template-columns: 1fr; }
  .ws-pop { width: calc(100vw - 16px); }
}
.set-card > .btn, .set-card > div > .btn { justify-self: start; }
/* lacivert ve altın: üst çubuktaki Oluştur butonu */
.ws-top .btn.primary .ic { color: #C9A227; }
.ws-top .btn.primary:hover:not(:disabled) { background: #0D1830; border-color: #0D1830; }
.set-link.on { background: #F3ECD6; box-shadow: inset 3px 0 0 #C9A227; }
.chip.plan-enterprise, .admin .chip.plan-enterprise { background: #14213D; color: #E0C46A; }
.admin .chip.plan-pro { background: #3A6EA5; color: #fff; }
.set-card, .set-f { min-width: 0; }
.set-f input, .set-f select, .set-f textarea { width: 100%; min-width: 0; }
@media (max-width: 1240px) { .set-grid { grid-template-columns: minmax(0, 1fr); } }

/* ============ ortak marka: QuizForTeams + şirket logosu ============ */
.co-brand { display: inline-flex; align-items: center; gap: .7em; }
.co-sep { width: 1px; height: 1.6em; background: currentColor; opacity: .25; }
.co-brand .brand-logo { max-width: 180px; }
.stage { position: relative; }
.stage > header, .stage > section { position: relative; z-index: 1; }
.brand-float { position: absolute; pointer-events: none; z-index: 0; }
.brand-float img { display: block; object-fit: contain; }
/* sağ alt köşe: beyaz zemin üzerinde küçük plaka, soruyu kapatmaz */
.brand-float.pos-corner { right: 2.2vw; bottom: 2.4vh; padding: .5em .8em; border-radius: 12px; background: rgba(255,255,255,.92); box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 2; }
.brand-float.pos-corner img { height: 2.6em; max-width: 9em; }
.preview-inner .brand-float.pos-corner { right: 30px; bottom: 24px; }
/* filigran: ekranın ortasında, çok soluk */
.brand-float.pos-watermark { inset: 18% 20% 12%; display: grid; place-items: center; opacity: .07; }
.brand-float.pos-watermark img { width: 100%; height: 100%; }
.stage.on-light .brand-float.pos-corner { background: #fff; box-shadow: 0 4px 16px rgba(20,22,43,.12); }
.hud .co-brand .brand-logo { max-width: 90px; }

/* ============ marka kiti ============ */
.kit-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 1.4rem; align-items: start; margin-top: .6rem; }
.kit-side { position: sticky; top: 80px; display: grid; gap: .5rem; }
.kit-prev { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); }
.kit-prev .preview-inner { position: absolute; left: 0; top: 0; }
.kit-form { display: grid; gap: 1.1rem; }
.kit-sec { display: grid; gap: .7rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.kit-sec:last-child { border-bottom: 0; padding-bottom: 0; }
.kit-sec h4 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: .6rem; }
.kit-sec > p { margin: -.4rem 0 0; font-size: .88rem; }
.kit-img { display: flex; align-items: center; gap: .6rem; min-height: 64px; padding: .5rem; border: 1px dashed #c9cbd3; border-radius: 10px; background: repeating-conic-gradient(#f3f4f6 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.kit-img img { max-height: 56px; max-width: 200px; object-fit: contain; }
.set-f input[type=file] { border: 0; padding: 0; box-shadow: none; font-weight: 400; font-size: .85rem; }
.set-f input[type=range] { padding: 0; border: 0; box-shadow: none; accent-color: #14213D; }
.kit-pos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.kit-pos-opt { display: grid; gap: .2rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; margin: 0; font-weight: 400; color: var(--ink); }
.kit-pos-opt input { width: auto; margin: 0 0 .2rem; accent-color: #14213D; }
.kit-pos-opt small { color: var(--muted); font-size: .8rem; }
.kit-pos-opt:has(input:checked) { border-color: #14213D; background: #F3ECD6; }
.kit-pos-opt:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.kit-presets { display: flex; flex-wrap: wrap; gap: .45rem; }
.kit-preset { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem .35rem .35rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.kit-preset .sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); }
.kit-preset.on { border-color: #14213D; box-shadow: 0 0 0 2px rgba(20,33,61,.15); }
.kit-colors { display: flex; flex-wrap: wrap; gap: .8rem; }
.kit-color { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-weight: 600; font-size: .88rem; color: var(--ink); }
.kit-color input { width: 40px; height: 32px; padding: 2px; border-radius: 8px; cursor: pointer; }
.kit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.kit-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kit-card.on { border: 2px solid #C9A227; }
.kit-thumb { position: relative; aspect-ratio: 16 / 8; display: grid; place-items: center; overflow: hidden; }
.kit-thumb-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.kit-thumb-logo { position: relative; padding: .5rem .8rem; border-radius: 10px; background: rgba(255,255,255,.92); }
.kit-thumb-logo img { display: block; max-height: 42px; max-width: 150px; object-fit: contain; }
.kit-thumb-logo b { font-size: 1.1rem; }
.kit-thumb-sw { position: absolute; left: .6rem; bottom: .6rem; display: flex; gap: .25rem; }
.kit-thumb-sw i { width: 14px; height: 14px; border-radius: 4px; }
.kit-card-b { padding: .8rem .9rem; display: grid; gap: .5rem; justify-items: start; }
.kit-pick { margin-bottom: 1rem; max-width: 360px; }
.appearance[open] summary { margin-bottom: .4rem; }
@media (max-width: 1100px) { .kit-layout { grid-template-columns: 1fr; } .kit-side { position: static; } .kit-pos { grid-template-columns: 1fr; } }
.kit-pos-opt input { justify-self: start; }
.kit-img { min-width: 0; overflow: hidden; }
.kit-img img { min-width: 0; max-width: 100%; }
.kit-sec .set-cols > * { min-width: 0; }
.kit-list { margin-bottom: .4rem; }
/* koyu sahnede şirket logosu beyaz plaka içinde okunur kalır */
.stage:not(.on-light) .co-brand .brand-logo { background: rgba(255,255,255,.94); padding: .22em .55em; border-radius: 8px; box-sizing: content-box; }
.stage:not(.on-light) .brand-float.pos-watermark img { filter: brightness(0) invert(1); }
.stage:not(.on-light) .brand-float.pos-watermark { opacity: .08; }
/* filigran: tam ortada, ekranın büyük bölümünü kaplar */
.brand-float.pos-watermark { inset: 0; display: grid; place-items: center; }
.brand-float.pos-watermark img { width: 72%; height: 72%; object-fit: contain; }
.stage:not(.on-light) .brand-float.pos-watermark { opacity: .1; }
.stage.on-light .brand-float.pos-watermark { opacity: .09; }

/* ---------- Oluştur menüsü ---------- */
.cr-pop { position: fixed; z-index: 60; width: 520px; max-width: calc(100vw - 16px); max-height: calc(100vh - 90px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(16,24,39,.2); animation: fade .12s ease; }
.cr-head { padding: 16px 18px 6px; display: grid; gap: 2px; }
.cr-head b { font-size: 1.02rem; color: #14213D; }
.cr-head .muted { font-size: .84rem; }
.cr-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 12px 18px 16px; }
.cr-tile { display: grid; justify-items: center; gap: 6px; padding: 14px 6px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: #14213D; text-align: center; transition: border-color .15s, transform .15s, box-shadow .15s; }
.cr-tile:hover { border-color: var(--c); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(16,24,39,.08); }
.cr-tile.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.cr-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--c); color: #fff; }
.cr-ic .ic, .cr-ic svg { width: 24px; height: 24px; display: block; }
.cr-tile b { font-size: .9rem; }
.cr-tile small { font-size: .72rem; color: var(--muted, #6b7280); line-height: 1.25; }
.cr-types { display: none; border-top: 1px solid var(--line); padding: 12px 12px 8px; }
.cr-types.open { display: grid; gap: 4px; animation: fade .12s ease; }
.cr-types-h { display: flex; align-items: baseline; gap: 8px; padding: 0 6px 6px; }
.cr-types-h b { color: #14213D; }
.cr-types-h .muted { font-size: .8rem; }
.cr-type { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.cr-type:hover, .cr-type:focus-visible { background: color-mix(in srgb, var(--c) 9%, #fff); outline: none; }
.cr-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.cr-type-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cr-type-t b { font-size: .92rem; color: #14213D; }
.cr-type-t small { font-size: .78rem; color: var(--muted, #6b7280); }
.cr-type > .ic { flex: none; width: 16px; height: 16px; color: var(--c); opacity: 0; transition: opacity .15s; }
.cr-type:hover > .ic { opacity: 1; }
.cr-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 18px 14px; border-top: 1px solid var(--line); background: #fafaf7; }
.cr-foot a { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: #14213D; text-decoration: none; font-weight: 600; }
.cr-foot a:hover { color: var(--accent); }
.cr-foot .ic { width: 15px; height: 15px; }
@media (max-width: 560px) {
  .cr-pop { left: 8px; right: 8px !important; width: auto; }
  .cr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Etkinliğe özel müşteri logosu ---------- */
.client-logo { border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 14px; padding: 14px 16px; background: #fcfbf6; display: grid; gap: 12px; }
.cl-head { display: grid; gap: 2px; }
.cl-head b { color: #14213D; }
.cl-head small { font-size: .82rem; }
.cl-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; }
.cl-drop { height: 130px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; display: grid; place-items: center; padding: 12px; font: inherit; color: #14213D; transition: border-color .15s, box-shadow .15s; }
.cl-drop:hover:not(:disabled), .cl-drop.over { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.cl-drop:disabled { cursor: not-allowed; opacity: .55; }
.cl-drop.busy { opacity: .6; }
.cl-drop img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cl-ph { display: grid; justify-items: center; gap: 4px; }
.cl-ph .ic { width: 22px; height: 22px; color: var(--accent); }
.cl-ph small { color: var(--muted, #6b7280); font-size: .75rem; }
.cl-side { display: grid; gap: 10px; min-width: 0; }
.cl-pos { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; width: fit-content; max-width: 100%; }
.cl-pos button { border: 0; border-right: 1px solid var(--line); background: none; padding: 8px 12px; font: inherit; font-size: .84rem; cursor: pointer; color: #14213D; }
.cl-pos button:last-child { border-right: 0; }
.cl-pos button.on { background: #14213D; color: #fff; }
.cl-pos button:disabled { cursor: not-allowed; opacity: .55; }
.cl-past { display: grid; gap: 6px; }
.cl-past-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-past-i { width: 72px; height: 44px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; padding: 5px; cursor: pointer; display: grid; place-items: center; }
.cl-past-i img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cl-past-i:hover, .cl-past-i.on { border-color: var(--accent); }
@media (max-width: 640px) { .cl-row { grid-template-columns: 1fr; } }

/* ---------- Telefonda müşteri logosu: alttaki boşlukta büyük ---------- */
body.play { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.play .play-main { width: 100%; }
.p-brand { flex: 1; display: grid; place-items: center; padding: 1rem 1.5rem max(1.5rem, env(safe-area-inset-bottom)); min-height: 140px; }
.p-brand[hidden] { display: none; }
.p-brand img { max-width: min(78vw, 420px); max-height: min(26vh, 220px); object-fit: contain; }

/* Filigran: saydamlık satır içi opacity ile gelir; belirgin logoda kendi renkleri. */
.stage:not(.on-light) .brand-float.pos-watermark.true-color img { filter: drop-shadow(0 4px 24px rgba(0,0,0,.35)); }
.stage.phase-lobby .brand-float.pos-watermark img { width: 60%; height: 60%; }
.alpha-f .alpha-val { color: var(--accent); margin-left: .3em; }
.alpha-f input[type=range] { width: 100%; accent-color: #14213D; }
.alpha-scale { display: flex; justify-content: space-between; margin-top: -2px; }
.alpha-scale small { font-size: .72rem; color: var(--muted, #6b7280); }
.cl-prev { display: grid; gap: 6px; }
.cl-prev .preview { max-width: 520px; border-radius: 10px; overflow: hidden; }
/* Açılış ekranı: QR kartı logonun üstünde kalır; logo sağdaki boş alanın ortasına gelir. */
.stage.phase-lobby .lobby { position: relative; z-index: 1; }
.stage.phase-lobby .brand-float.pos-watermark { left: 40%; top: 10%; }
.stage.phase-lobby .brand-float.pos-watermark img { width: 78%; height: 70%; }

/* ---------- Tebrikler: üç altın kupa, 1. kupa yüksek ---------- */
.podium.cups { gap: 3em; align-items: flex-end; }
.podium.cups .step { width: 14em; justify-items: center; gap: .25em; animation: cup-rise .7s cubic-bezier(.2,.9,.3,1.2) both; }
.podium.cups .s1 { animation-delay: .9s; }
.podium.cups .s2 { animation-delay: .45s; }
.podium.cups .s3 { animation-delay: 0s; }
.podium.cups .p-name { max-width: 100%; font-size: 1.7em; }
.podium.cups .s1 .p-name { font-size: 2.2em; color: #FFD54A; }
.podium.cups .p-score { font-size: 1.05em; margin-bottom: .4em; }
.trophy svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 10px 22px rgba(0,0,0,.35)); }
.podium.cups .s1 .trophy { width: 12em; height: 16em; }
.podium.cups .s2 .trophy, .podium.cups .s3 .trophy { width: 8em; height: 10.7em; }
.podium.cups .s1 .trophy svg { filter: drop-shadow(0 0 28px rgba(255,213,74,.45)) drop-shadow(0 10px 22px rgba(0,0,0,.35)); }
.stage.on-light .podium.cups .s1 .p-name { color: #9C7208; }
@keyframes cup-rise { from { opacity: 0; transform: translateY(40px) scale(.85); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .podium.cups .step { animation: none; } }
/* Kupaların altındaki platformlar: 1. yüksek, 2. orta, 3. alçak */
.podium.cups { gap: 0; }
.podium.cups .step { gap: .2em; }
.podium.cups .s1 .trophy { width: 10em; height: 13.3em; }
.podium.cups .s2 .trophy, .podium.cups .s3 .trophy { width: 7em; height: 9.3em; }
.podium.cups .trophy { margin-bottom: -.3em; position: relative; z-index: 1; }
.plat { width: 100%; display: grid; place-items: start center; padding-top: .35em; background: linear-gradient(180deg, #2b3a5c, #1a2540); border-top: .35em solid #E8B923; border-radius: 10px 10px 0 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 30px rgba(0,0,0,.3); }
.plat span { font-size: 3em; font-weight: 900; color: #FFD54A; line-height: 1; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.podium.cups .s1 .plat { height: 8em; background: linear-gradient(180deg, #34477a, #1f2c4f); }
.podium.cups .s2 .plat { height: 5.2em; border-top-color: #C9CED9; }
.podium.cups .s2 .plat span { color: #E3E7EF; }
.podium.cups .s3 .plat { height: 3.6em; border-top-color: #CD8A4B; }
.podium.cups .s3 .plat span { color: #E7A66A; font-size: 2.4em; }
.podium.cups .s2 .plat { border-top-right-radius: 0; }
.podium.cups .s3 .plat { border-top-left-radius: 0; }
.stage.on-light .plat { background: linear-gradient(180deg, #24324f, #14213D); }
