/* Oda oyunlari (arcade.js) */
/* Arama ekraninda oyun (yon C, 11-15): oyun sahneyi kaplar, profiller ustte serit (fitStage tek satira sigdirir) */
.ag-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.ag-balance { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--primary-ink); font-variant-numeric: tabular-nums; }
.ag-balance .i { width: 16px; height: 16px; }

/* Oyun secimi */
.ag-cards { display: grid; gap: 0.45rem; }
.ag-card { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-dark); }
.ag-card.off { opacity: 0.55; }
.ag-card-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: var(--bg-panel); border-radius: var(--radius); color: var(--primary-ink); }
.ag-card-icon .i { width: 22px; height: 22px; }
.ag-card-main { flex: 1; min-width: 0; font-size: 0.9rem; }
.ag-card-main small { display: block; color: var(--text-muted); font-size: 0.76rem; line-height: 1.35; margin-top: 0.1rem; }
.ag-tag { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.05rem 0.4rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.66rem; font-weight: 600; color: var(--text-muted); vertical-align: 0.1em; }
.ag-tag.coin { border-color: var(--primary); color: var(--primary-ink); }
.ag-tag .i { width: 11px; height: 11px; }
.ag-why { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.74rem; color: var(--text-muted); white-space: nowrap; }
.ag-why .i { width: 13px; height: 13px; }
.ag-roomcfg { margin-top: 0.9rem; border-top: 1px solid var(--border); padding-top: 0.7rem; font-size: 0.86rem; }
.ag-roomcfg summary { cursor: pointer; display: flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.ag-roomcfg summary .i { width: 15px; height: 15px; }
.ag-roomcfg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.2rem 0.8rem; margin-top: 0.4rem; }

/* Ortak parcalar */
.ag-game { display: grid; gap: 0.6rem; }
.ag-sub { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-top: 0.3rem; }
.ag-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ag-stake { display: flex; gap: 0.4rem; }
.ag-stake input { flex: 1; min-width: 0; }
.ag-stake .btn { flex: none; }
.ag-status { text-align: center; font-size: 0.9rem; }
.ag-list { display: grid; gap: 0.2rem; }
.ag-list > div { display: grid; grid-template-columns: 1fr auto auto; gap: 0.7rem; align-items: center; padding: 0.3rem 0.5rem; background: var(--bg-dark); border-radius: var(--radius); font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.ag-list > div.ok { box-shadow: inset 3px 0 0 var(--success); }
.ag-list > div.bad { box-shadow: inset 3px 0 0 var(--danger); opacity: 0.75; }
.ag-list > div.me { background: var(--bg-hover); }
.ag-list .i { width: 13px; height: 13px; vertical-align: -0.12em; }
.ag-dot { display: inline-block; width: 10px; height: 10px; margin-right: 0.4rem; }
.ag-game .info-box.ok { border-color: var(--success); }
.ag-game .info-box.bad { border-color: var(--danger); }
.ag-count { font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--primary-ink); font-variant-numeric: tabular-nums; }
.ag-count.small { font-size: 1.6rem; }
.ag-final { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 1rem; font-size: 1.1rem; color: var(--primary-ink); }
.ag-final .i { width: 36px; height: 36px; }
.ag-quiz-top { display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); }
.ag-quiz-top.night { color: #a5b4fc; }

/* Zar Duellosu (11-17 Napol, onizleme zar-yon.html): solda cuha masa, sagda panel. Zar kubu coins.css "3B zar" */
.zd { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 14px; align-items: start; }
.zd-slot { min-width: 0; container-type: inline-size; }
.zd-table { position: relative; min-height: 380px; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
    background: radial-gradient(ellipse at 50% 45%, #1f6b47 0%, #134a32 55%, #0b2d1f 100%);
    box-shadow: inset 0 0 0 6px #3b2a1a, inset 0 0 0 9px #241a10, inset 0 10px 30px rgba(0,0,0,.55); color: #fff; }
.zd-table::before { content: ''; position: absolute; inset: 9px; border-radius: 12px; pointer-events: none;
    background: repeating-radial-gradient(circle at 30% 30%, rgba(255,255,255,.015) 0 2px, transparent 2px 4px); }
.zd-head { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 10px; padding: 16px 20px 0;
    font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.zd-arena { position: relative; flex: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px 20px 16px; }
.zd-player { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; transition: opacity .4s; }
.zd-who { font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-who small { font-weight: 400; color: rgba(255,255,255,.6); }
.zd-dice { display: flex; gap: 14px; height: 84px; align-items: center; }
.zd-sum { font-family: var(--font-display); font-size: 2.8rem; line-height: 1; min-height: 1em; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
.zd-player.win .zd-sum, .zd-player.win .zd-who { color: #ffc83d; text-shadow: 0 0 18px rgba(255,200,61,.6); }
.zd-player.lose { opacity: .5; }
.zd-mid { text-align: center; }
.zd-mid small { display: block; font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.zd-vs { font-family: var(--font-display); font-size: 1.9rem; color: rgba(255,255,255,.4); }
.zd-prize { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2.5rem; line-height: 1; color: #ffc83d; text-shadow: 0 2px 0 #c9921a; font-variant-numeric: tabular-nums; }
.zd-banner { position: relative; z-index: 2; min-height: 2.2rem; padding: 0 0 14px; text-align: center;
    font-family: var(--font-display); font-size: 1.65rem; color: #ffc83d; text-shadow: 0 2px 0 #c9921a; }
.zd-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: rgba(255,255,255,.75); }
.zd-empty > div { display: flex; gap: 14px; opacity: .85; }
.zd-empty p { margin: 0; font-size: 0.9rem; }
/* Tepki balonu: masada adla yukari ucar */
.zd-float { position: absolute; z-index: 6; bottom: 56px; display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px;
    background: rgba(7,6,13,.85); color: #f1edff; font-size: 0.78rem; font-weight: 700; white-space: nowrap; pointer-events: none; animation: zd-up 2.4s ease-out forwards; }
.zd-float .e { font-size: 1.25rem; line-height: 1; }
@keyframes zd-up { 0% { transform: translateY(10px) scale(.6); opacity: 0; } 12% { transform: none; opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(-70px); opacity: 0; } }
/* Panel */
.zd-panel { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.zd-panel .ag-sub { display: flex; justify-content: space-between; align-items: baseline; margin: 0; }
.zd-panel .ag-sub small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.zd-mine { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 8px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-dark); color: var(--text-main); cursor: pointer; font-weight: 700; text-align: left; }
.zd-mine:hover { border-color: var(--primary); }
.zd-mine > span:not(.vd-wrap) { flex: 1; }
.zd-mine small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--text-muted); }
.zd-mine > .i { width: 16px; height: 16px; color: var(--text-muted); }
.zd-own { display: flex; align-items: center; gap: 10px; padding: 0.55rem 0.7rem; font-size: 0.86rem; border-radius: var(--radius); background: var(--bg-dark); }
.zd-own > span { flex: 1; line-height: 1.4; }
.zd-list { display: grid; gap: 3px; }
.zd-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 10px; font-size: 0.84rem;
    border-radius: var(--radius); background: var(--bg-dark); font-variant-numeric: tabular-nums; }
.zd-list > div > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-react { display: flex; flex-wrap: wrap; gap: 6px; }
.zd-react button { min-width: 40px; height: 36px; padding: 0 8px; border: none; border-radius: var(--radius); cursor: pointer;
    font-size: 1.1rem; background: var(--bg-hover); color: var(--text-main); box-shadow: 0 3px 0 var(--bg-darker); transition: transform .08s, box-shadow .08s; }
.zd-react button.txt { font-size: 0.75rem; font-weight: 700; }
.zd-react button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--bg-darker); }
@media (max-width: 860px) { .zd { grid-template-columns: 1fr; } }
/* Masa darsa (yaninda sohbet acik): skor ust satira, oyuncular yan yana */
@container (max-width: 560px) {
    .zd-arena { grid-template-columns: 1fr 1fr; align-content: center; row-gap: 18px; }
    .zd-mid { grid-column: 1 / -1; order: -1; }
    .zd-dice { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .zd-float { animation-duration: .01s; } }

/* Jackpot turu (eski Oda Carki): Global Jackpot sekmesinin jp-* duzeni (coins.css) + ok ve dilimsiz liste */
.ag-jp .jp-stage .ag-wheel { width: 100%; height: 100%; }
.ag-wheel-pin { position: absolute; top: 0; left: 50%; margin-left: -10px; width: 0; height: 0; z-index: 1;
    border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 20px solid var(--text-main);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.jp-list.jp-noav li { grid-template-columns: 12px minmax(0, 1fr) auto 48px; }
.ag-jp-wait { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.45rem; }
.ag-jp-ticket { display: flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; padding: 0.55rem 0.7rem; background: var(--bg-darker); border: 1px solid var(--border); }
.ag-jp-ticket .i { width: 18px; height: 18px; color: var(--primary-ink); flex: none; }
.ag-jp-ticket span { flex: 1; }
.ag-jp-ticket b { color: var(--text-main); }

/* Bilgi Yarismasi (11-17 Napol, onizleme bilgi-yon.html): solda kabin ekrani, sagda tablo + tepki + oyun sohbeti */
.qz { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr); gap: 14px; align-items: start; }
.qz-screen { position: relative; overflow: hidden; min-height: 420px; padding: 18px; display: flex; flex-direction: column; gap: 14px; border-radius: 14px;
    background: radial-gradient(ellipse at 50% 30%, #1c1740 0%, #08060f 80%); box-shadow: inset 0 0 0 2px #050409, inset 0 6px 24px rgba(0,0,0,.85); color: #f1edff; }
.qz-screen::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
.qz-screen > * { position: relative; z-index: 1; }
/* Ucan tepki ekranin ustunde durur: yukaridaki kural onu akisa sokup tasma gizli alta itiyordu (bir an gorunup kayboluyordu) */
.qz-screen > .zd-float { position: absolute; z-index: 6; }
.qz-top { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: #9a94b8; }
.qz-num b { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; color: #f1edff; }
.qz-meta { flex: 1; }
.qz-led { min-width: 62px; padding: 6px 12px; border-radius: 10px; text-align: center; background: #07060d; box-shadow: inset 0 2px 8px rgba(0,0,0,.8);
    font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: #86efac; font-variant-numeric: tabular-nums; }
.qz-bar { height: 8px; border-radius: 6px; overflow: hidden; background: #0d0b1b; box-shadow: inset 0 1px 3px rgba(0,0,0,.6); }
.qz-bar i { display: block; height: 100%; width: 100%; transform-origin: left; background: hsl(130 75% 50%); transition: transform .1s linear, background .3s; }
.qz-q { flex: 1; display: grid; place-items: center; padding: 4px 10px; text-align: center; font-size: 1.35rem; font-weight: 700; line-height: 1.4; }
.qz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qz-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px; border: none; border-radius: 12px; cursor: pointer; text-align: left;
    font-size: 1rem; font-weight: 700; color: #fff; transition: transform .08s, box-shadow .08s, opacity .3s, filter .3s; }
.qz-opt:active:not(:disabled) { transform: translateY(3px); }
.qz-opt:disabled { cursor: default; }
.qz-o0 { background: #ef4444; box-shadow: 0 5px 0 #991b1b; }
.qz-o1 { background: #3b82f6; box-shadow: 0 5px 0 #1e40af; }
.qz-o2 { background: #eab308; box-shadow: 0 5px 0 #a16207; color: #1a1200; }
.qz-o3 { background: #22c55e; box-shadow: 0 5px 0 #15803d; }
.qz-sh { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: rgba(0,0,0,.22); color: #fff; }
.qz-sh svg { width: 16px; height: 16px; fill: currentColor; }
.qz-txt { flex: 1; min-width: 0; }
.qz-opt.picked { outline: 3px solid #fff; outline-offset: 2px; }
.qz-opts.locked .qz-opt:not(.picked) { opacity: .45; }
.qz-opts.reveal .qz-opt { opacity: .35; filter: saturate(.4); }
.qz-opts.reveal .qz-opt.correct { opacity: 1; filter: none; box-shadow: 0 0 0 3px #fff, 0 0 24px rgba(134,239,172,.6); }
.qz-opts.reveal .qz-opt.wrong { opacity: .8; filter: none; }
.qz-who { position: absolute; top: -12px; right: 10px; display: flex; }
.qz-who .avatar { border: 2px solid #17132e; margin-left: -6px; }
.qz-n { font-family: var(--font-display); font-size: 1.4rem; }
.qz-status { min-height: 1.2em; text-align: center; font-size: 0.82rem; color: #9a94b8; }
.qz-gainfly { position: absolute; left: 50%; top: 46%; z-index: 5; transform: translate(-50%, -50%); pointer-events: none;
    padding: 2px 22px; border-radius: 16px; background: rgba(7,6,13,.88); box-shadow: 0 10px 30px rgba(0,0,0,.6);
    font-family: var(--font-display); font-size: 4rem; color: #86efac; text-shadow: 0 0 24px rgba(134,239,172,.6); animation: qz-gain 1.6s ease-out forwards; }
.qz-gainfly.no { color: #fca5a5; font-size: 2.5rem; text-shadow: none; }
@keyframes qz-gain { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -90%); } }
/* Final: kursu + istatistik */
.qz-final { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; }
.qz-podium { display: flex; align-items: flex-end; gap: 12px; }
.qz-pod { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 120px; text-align: center; }
.qz-pod b { font-size: 0.9rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qz-pod small { color: #9a94b8; font-size: 0.75rem; }
.qz-crown { font-size: 1.75rem; margin-bottom: -4px; }
.qz-blk { width: 100%; padding-top: 8px; border-radius: 10px 10px 0 0; font-family: var(--font-display); font-size: 2.5rem; color: #0c0a17;
    box-shadow: inset 0 3px 0 rgba(255,255,255,.35), inset 0 -6px 0 rgba(0,0,0,.25); }
.qz-pod.p1 .qz-blk { height: 150px; background: linear-gradient(#ffe08a, #ffc83d); }
.qz-pod.p2 .qz-blk { height: 110px; background: linear-gradient(#f1f5f9, #cbd5e1); }
.qz-pod.p3 .qz-blk { height: 80px; background: linear-gradient(#fdba74, #ea8a3b); }
.qz-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qz-stats > div { padding: 8px 10px; border-radius: 10px; text-align: center; background: #07060d; box-shadow: inset 0 2px 6px rgba(0,0,0,.7); }
.qz-stats small { display: block; font-size: 0.7rem; color: #9a94b8; }
.qz-stats b { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: #ffc83d; }
.qz-conf { position: absolute; top: -10px; z-index: 4; width: 8px; height: 14px; border-radius: 2px; animation: qz-fall linear forwards; }
@keyframes qz-fall { to { transform: translateY(480px) rotate(540deg); opacity: .2; } }
/* Panel */
.qz-panel { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.qz-panel .ag-sub { display: flex; justify-content: space-between; align-items: baseline; margin: 0; }
.qz-panel .ag-sub small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.qz-board { display: grid; gap: 3px; }
.qz-board > div { display: grid; grid-template-columns: 20px 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 10px; font-size: 0.84rem;
    border-radius: var(--radius); background: var(--bg-dark); font-variant-numeric: tabular-nums; }
.qz-board > div.me { box-shadow: inset 0 0 0 1px var(--primary); }
.qz-rk { font-family: var(--font-display); font-size: 1.1rem; text-align: center; color: var(--text-muted); }
.qz-board > div:first-child .qz-rk { color: var(--primary-ink); }
.qz-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qz-gain { margin-left: 4px; font-weight: 700; color: var(--ok-text); }
.qz-streak { margin-left: 4px; font-size: 0.75rem; font-weight: 700; color: #fb923c; }
.qz-ans { margin-left: 4px; color: var(--ok-text); }
.qz-ans .i { width: 13px; height: 13px; vertical-align: -0.15em; }
.qz-chat { display: grid; min-height: 120px; max-height: 200px; align-content: start; }
/* .ag-chat:empty gizler (cizim); Bilgi sohbeti bosken de gorunsun */
.ag-chat.qz-chat:empty { display: grid; }
.qz-chat:empty::before { content: 'Henüz mesaj yok.'; color: var(--text-muted); }
.ag-chat .sys { color: var(--primary-ink); font-weight: 600; }
/* Zar paneli zaten uzun: sohbet kisa, yazma kutusu ekranda kalsin */
.zd-panel .qz-chat { min-height: 80px; max-height: 130px; }
@media (max-width: 860px) { .qz { grid-template-columns: 1fr; } }
/* Acik tema: Token penceresinin krem kabini (11-17 Napol: soru ekrani acik temada siyah kaliyordu) */
html[data-theme="light"] .qz-screen { --qz-led-l: 36%; --qz-led-glow: 0; color: #3a2f1a;
    background: radial-gradient(ellipse at 50% 30%, #fffaf0 0%, #e6d8b6 85%); box-shadow: inset 0 0 0 2px #cdbb8f, inset 0 6px 20px rgba(90,70,30,.22); }
html[data-theme="light"] .qz-screen::before { background: repeating-linear-gradient(0deg, rgba(90,70,30,.04) 0 1px, transparent 1px 3px); }
html[data-theme="light"] .qz-top, html[data-theme="light"] .qz-status, html[data-theme="light"] .qz-pod small, html[data-theme="light"] .qz-stats small { color: #7d6f52; }
html[data-theme="light"] .qz-num b { color: #3a2f1a; }
html[data-theme="light"] .qz-led, html[data-theme="light"] .qz-stats > div { background: #fbf3df; box-shadow: inset 0 2px 8px rgba(90,70,30,.25); }
html[data-theme="light"] .qz-led { color: #15803d; }
html[data-theme="light"] .qz-bar { background: #e3d5b3; box-shadow: inset 0 1px 3px rgba(90,70,30,.3); }
html[data-theme="light"] .qz-opt.picked { outline-color: #3a2f1a; }
html[data-theme="light"] .qz-opts.reveal .qz-opt.correct { box-shadow: 0 0 0 3px #3a2f1a, 0 0 20px rgba(21,128,61,.45); }
html[data-theme="light"] .qz-who .avatar { border-color: #efe5cb; }
html[data-theme="light"] .qz-gainfly { background: rgba(255,250,240,.95); color: #15803d; text-shadow: none; box-shadow: 0 10px 30px rgba(70,55,30,.3); }
html[data-theme="light"] .qz-gainfly.no { color: #b91c1c; }
html[data-theme="light"] .qz-stats b { color: #b7791f; }
html[data-theme="light"] .qz-pod b { color: #3a2f1a; }

@media (max-width: 560px) { .qz-opts { grid-template-columns: 1fr; } .qz-pod { width: 90px; } }
@media (prefers-reduced-motion: reduce) { .qz-gainfly, .qz-conf { animation-duration: .01s; } }

/* Cizim Tahmini (11-17 Napol, onizleme cizim-yon.html): Bilgi'nin kabin ekrani (.qz-screen, acik tema dahil) + tuval */
.dr-screen { min-height: 0; gap: 10px; padding: 14px; }
/* Uzun kelimede kutular daralir, alt satira kaymaz ("dis fircasi" bosluk kutusu tek basina asagi dusuyordu) */
.dr-word { display: flex; justify-content: center; align-items: flex-end; gap: clamp(2px, 0.6vw, 6px); min-height: 44px; }
.dr-word > span { flex: 0 1 30px; min-width: 14px; height: 40px; display: grid; place-items: end center; padding-bottom: 4px; border-bottom: 3px solid currentColor;
    font-family: var(--font-display); font-size: 1.85rem; line-height: 1; opacity: .9; }
.dr-word > span.sp { flex: 0 1 14px; min-width: 6px; border: none; }
.dr-word > span.open { color: #ffc83d; }
.dr-word.mine > span:not(.len) { color: #86efac; }
.dr-word > .len { flex: none; min-width: 0; width: auto; height: auto; align-self: center; margin-left: 8px; padding: 0; border: none; font-family: var(--font-body); font-size: 0.78rem; opacity: .65; white-space: nowrap; }
.dr-wrap { position: relative; margin: 4px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 6px #0d0b1b, 0 0 0 8px rgba(0,0,0,.4); }
.ag-canvas { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; background: #fff; touch-action: none; }
.ag-canvas.drawing { cursor: crosshair; }
.ag-canvas.drawing.fill { cursor: cell; }
/* Kelime secimi / tur sonu: tuvalin ustunde katman */
.dr-over { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 10px; overflow-y: auto; text-align: center; background: rgba(5,4,10,.92); color: #f1edff; }
.dr-choose { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dr-choose > b, .dr-w { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; line-height: 1; color: #ffc83d; text-shadow: 0 3px 0 #c9921a; }
.dr-choose > small, .dr-reveal > small { color: #9a94b8; font-size: 0.75rem; }
.dr-opts { display: flex; justify-content: center; gap: 8px; }
.dr-opt { min-width: 0; flex: 1 1 0; max-width: 140px; padding: 10px 12px; border: none; border-radius: 12px; cursor: pointer; font: inherit; font-size: 0.95rem; font-weight: 700; color: #f1edff;
    background: #2a2350; box-shadow: 0 5px 0 #110e22; transition: transform .08s, box-shadow .08s; }
.dr-opt:hover { background: #332b60; }
.dr-opt:active { transform: translateY(3px); box-shadow: 0 2px 0 #110e22; }
.dr-opt small { display: block; margin-top: 3px; font-size: 0.7rem; }
.dr-reveal { display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 6px; }
.dr-w { font-size: 2.6rem; }
.dr-reveal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; width: min(280px, 100%); }
.dr-reveal li { display: flex; align-items: center; gap: 8px; padding: 3px 10px; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 0.8rem; }
.dr-reveal li b { margin-left: auto; color: #86efac; }
.dr-reveal li b.no { color: #9a94b8; font-weight: 500; }
/* Faz sayaclari (11-24 Napol): kelime secilirken akan cubuk, tur sonunda halka. Renk sure cubuguyla ayni sirada
   (yesil -> sari %60 -> kirmizi %25). --delay negatif: yeniden cizimde animasyon bastan degil kaldigi yerden surer */
@keyframes dr-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes dr-drain-hue { 0% { background: hsl(130 75% 50%); } 40% { background: hsl(50 75% 50%); } 75%, 100% { background: hsl(0 75% 50%); } }
@keyframes dr-ring { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 100; } }
@keyframes dr-ring-hue { 0% { stroke: hsl(130 75% 50%); } 40% { stroke: hsl(50 75% 50%); } 75%, 100% { stroke: hsl(0 75% 50%); } }
.dr-cbar { width: min(320px, 100%); height: 6px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.1); }
.dr-cbar i { display: block; height: 100%; border-radius: inherit; transform-origin: left;
    animation: dr-drain var(--dur) linear var(--delay) both, dr-drain-hue var(--dur) linear var(--delay) both; }
.dr-ring { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; margin: 0 2px; vertical-align: middle; }
.dr-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.dr-ring circle { fill: none; stroke-width: 3.5; stroke: rgba(255,255,255,.12); }
.dr-ring circle + circle { stroke-linecap: round; stroke-dasharray: 100; animation: dr-ring var(--dur) linear var(--delay) both, dr-ring-hue var(--dur) linear var(--delay) both; }
.dr-ring > span { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; line-height: 1; color: #f1edff; text-shadow: none; }
.qz-led:has(> .dr-ring) { padding: 3px 12px; line-height: 0; }
.qz-led > .dr-ring { width: 34px; height: 34px; margin: 0; }
html[data-theme="light"] .dr-cbar, html[data-theme="light"] .dr-ring circle:first-child { background: rgba(0,0,0,.08); stroke: rgba(0,0,0,.12); }
html[data-theme="light"] .dr-ring > span { color: #3a2f1a; }
.dr-like { display: flex; align-items: center; gap: 8px; }
.dr-like b { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; }
.dr-like small { color: #9a94b8; }
.dr-like .dr-key { font-size: 1.15rem; }
/* Araclar: kabin tuslari */
.dr-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dr-pal { display: grid; grid-template-columns: repeat(6, 24px); gap: 5px; padding: 6px; border-radius: 10px; background: #0d0b1b; box-shadow: inset 0 2px 6px rgba(0,0,0,.6); }
.dr-pal button { width: 24px; height: 24px; padding: 0; border: 2px solid rgba(0,0,0,.25); border-radius: 6px; cursor: pointer; }
.dr-pal button.on { outline: 2px solid #ffc83d; outline-offset: 2px; }
.dr-sizes { display: flex; gap: 4px; padding: 6px; border-radius: 10px; background: #0d0b1b; box-shadow: inset 0 2px 6px rgba(0,0,0,.6); }
.dr-sizes button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: none; border-radius: 8px; background: #2a2350; cursor: pointer; }
.dr-sizes button.on { box-shadow: inset 0 0 0 2px #ffc83d; }
.dr-sizes i { display: block; border-radius: 50%; background: #f1edff; }
.dr-key { display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px; border: none; border-radius: 10px; cursor: pointer; font: inherit; font-size: 0.82rem; font-weight: 700;
    color: #f1edff; background: #2a2350; box-shadow: 0 4px 0 #110e22; transition: transform .08s, box-shadow .08s; }
.dr-key:hover:not(:disabled) { background: #332b60; }
.dr-key:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #110e22; }
.dr-key.on { box-shadow: 0 4px 0 #110e22, inset 0 0 0 2px #ffc83d; }
.dr-key:disabled { opacity: .45; cursor: default; }
.dr-key .i { width: 15px; height: 15px; }
.dr-sp { flex: 1; }
/* Final: kursu + galeri */
.dr-final { justify-content: flex-start; padding-top: 8px; }
.dr-final .qz-pod { width: 100px; }
.dr-final .qz-pod.p1 .qz-blk { height: 96px; } .dr-final .qz-pod.p2 .qz-blk { height: 70px; } .dr-final .qz-pod.p3 .qz-blk { height: 50px; }
.dr-final .qz-blk { font-size: 1.8rem; }
.dr-gallery { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 8px; }
.dr-best { display: block; color: #ffc83d; font-size: 0.68rem; font-weight: 700; }
.dr-card { margin: 0; overflow: hidden; border-radius: 12px; background: #2a2350; box-shadow: 0 4px 0 #110e22; }
.dr-card.best { box-shadow: 0 4px 0 #110e22, inset 0 0 0 2px #ffc83d; }
.dr-card img, .dr-ph { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; background: #fff; }
.dr-card.best img { padding: 2px 2px 0; }
.dr-card figcaption { display: flex; justify-content: space-between; gap: 6px; padding: 7px 10px; font-size: 0.75rem; color: #f1edff; }
.dr-card figcaption b { display: block; font-size: 0.9rem; }
.dr-card figcaption small { color: #9a94b8; }
.dr-card .lk { color: #ffc83d; font-weight: 700; white-space: nowrap; }
.qz-board > div.ok { background: color-mix(in srgb, #22c55e 18%, var(--bg-dark)); }
.ag-chat .near { color: var(--primary-ink); font-weight: 700; }
.ag-chat .inner { color: var(--ok-text); }
.ag-chat .inner small { color: var(--text-muted); }
html[data-theme="light"] .dr-word > span.open { color: #b7791f; }
html[data-theme="light"] .dr-word.mine > span:not(.len) { color: #15803d; }
html[data-theme="light"] .dr-wrap { box-shadow: 0 0 0 6px #e3d5b3, 0 0 0 8px rgba(90,70,30,.25); }
html[data-theme="light"] .dr-pal, html[data-theme="light"] .dr-sizes { background: #e3d5b3; box-shadow: inset 0 2px 6px rgba(90,70,30,.3); }
html[data-theme="light"] .dr-key, html[data-theme="light"] .dr-sizes button, html[data-theme="light"] .dr-card { background: #fbf3df; color: #3a2f1a; box-shadow: 0 4px 0 #cdbb8f; }
html[data-theme="light"] .dr-key:hover:not(:disabled) { background: #fff8e6; }
html[data-theme="light"] .dr-key.on { box-shadow: 0 4px 0 #cdbb8f, inset 0 0 0 2px #b7791f; }
html[data-theme="light"] .dr-sizes button.on { box-shadow: inset 0 0 0 2px #b7791f; }
html[data-theme="light"] .dr-sizes i { background: #3a2f1a; }
html[data-theme="light"] .dr-card.best { box-shadow: 0 4px 0 #cdbb8f, inset 0 0 0 2px #b7791f; }
html[data-theme="light"] .dr-card figcaption { color: #3a2f1a; }
html[data-theme="light"] .dr-card figcaption small { color: #7d6f52; }
html[data-theme="light"] .dr-card .lk { color: #b7791f; }
/* Kelime secimi / tur sonu katmani: acik temada da kabin kremi (koyu kalip ekrani karartiyordu) */
html[data-theme="light"] .dr-over { background: rgba(251,243,223,.95); color: #3a2f1a; }
html[data-theme="light"] .dr-choose > b, html[data-theme="light"] .dr-w { color: #b7791f; text-shadow: 0 3px 0 #e3d5b3; }
html[data-theme="light"] .dr-choose > small, html[data-theme="light"] .dr-reveal > small, html[data-theme="light"] .dr-like small,
html[data-theme="light"] .dr-reveal li b.no { color: #7d6f52; }
html[data-theme="light"] .dr-opt { background: #fff8e6; color: #3a2f1a; box-shadow: 0 5px 0 #cdbb8f; }
html[data-theme="light"] .dr-opt:hover { background: #fffdf5; }
html[data-theme="light"] .dr-opt:active { box-shadow: 0 2px 0 #cdbb8f; }
html[data-theme="light"] .dr-reveal li { background: rgba(90,70,30,.08); }
html[data-theme="light"] .dr-reveal li b { color: #15803d; }
.ag-chat { max-height: 110px; overflow-y: auto; display: grid; gap: 0.1rem; font-size: 0.82rem; padding: 0.4rem; background: var(--bg-dark); border-radius: var(--radius); }
.ag-chat:empty { display: none; }
.ag-chat .ok { color: var(--success); font-weight: 600; }

/* Vampir Koylu */
.ag-role { padding: 0.5rem 0.7rem; border-radius: var(--radius); background: var(--bg-dark); border-left: 4px solid var(--border); font-size: 0.9rem; }
.ag-role.r-vampire { border-left-color: var(--danger); }
.ag-role.r-doctor { border-left-color: var(--success); }
.ag-role.r-seer { border-left-color: #a78bfa; }
.ag-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.35rem; }
.ag-player { position: relative; display: flex; flex-direction: column; gap: 0.1rem; padding: 0.5rem 0.6rem; text-align: left; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-dark); color: var(--text-main); cursor: pointer; }
.ag-player:disabled { cursor: default; }
.ag-player:not(:disabled):hover { border-color: var(--primary); }
.ag-player b { font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-player small { font-size: 0.7rem; color: var(--text-muted); }
.ag-player.dead { opacity: 0.45; text-decoration: line-through; }
.ag-player.picked { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--bg-dark)); }
.ag-player.me b::after { content: ' (sen)'; font-weight: 400; color: var(--text-muted); }
.ag-votes { position: absolute; top: 4px; right: 5px; font-size: 0.66rem; font-weight: 700; padding: 0 0.3rem; background: var(--primary); color: var(--bg-darker); border-radius: var(--radius); }
.ag-votes.bite { background: var(--danger); color: #fff; }

@media (max-width: 560px) { .ag-card { flex-wrap: wrap; } }

/* Sunucu Ayarlari > Oyunlar: etiket satir boyunca uzamasin */
.toggle-row .ag-tag { align-self: flex-start; width: auto; margin: 0.1rem 0; }

/* ---------- Oyun ayarlari penceresi: kabin + hazir modlar (11-17 Napol B; tokenlar coins.css) ---------- */
/* govde (padding, zemin, golge, acik tema) coins.css kabin blogundan gelir */
.confirm-box.ag-opts { width: min(30rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); display: flex; flex-direction: column; }
.ag-opts-mq { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px 14px; border-radius: 12px 12px 6px 6px;
    background: linear-gradient(var(--cab-top), var(--cab-top2)); box-shadow: inset 0 -2px 0 rgba(0,0,0,.35); }
.ag-opts-mq h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--primary-ink);
    text-shadow: 0 3px 0 var(--primary-shade), 0 0 18px color-mix(in srgb, var(--primary) 35%, transparent); }
html[data-theme="light"] .ag-opts-mq h3 { text-shadow: 0 2px 0 color-mix(in srgb, var(--primary-shade) 45%, transparent); }
.ag-opts-x { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border: none; border-radius: 8px; cursor: pointer;
    color: var(--text-muted); background: var(--cab-key); box-shadow: 0 3px 0 var(--cab-key-shade); }
.ag-opts-body { padding: 12px 4px 4px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.ag-opt { border: 0; padding: 0; margin: 0; min-width: 0; }
.ag-opt legend { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 0.4rem; padding: 0; }
.ag-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ag-opt label { cursor: pointer; }
/* Tus: kabin tusu, basinca iner */
.ag-mode, .ag-tiles span { border: none; cursor: pointer; border-radius: 12px; color: var(--text-main); background: var(--cab-key);
    box-shadow: 0 4px 0 var(--cab-key-shade); transition: transform .08s, box-shadow .08s, background .12s; }
.ag-mode:hover, .ag-tiles label:hover span { background: var(--cab-key-hover); }
.ag-mode:active, .ag-tiles label:active span { transform: translateY(3px); box-shadow: 0 1px 0 var(--cab-key-shade); }
.ag-mode.on, .ag-tiles input:checked + span { background: color-mix(in srgb, var(--primary) 14%, var(--cab-key)); box-shadow: 0 4px 0 var(--cab-key-shade), inset 0 0 0 2px var(--primary); }
.ag-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ag-mode { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 9px; }
.ag-mode i { font-style: normal; font-size: 1.35rem; }
.ag-mode b { font-size: 0.9rem; }
.ag-mode small { font-size: 0.72rem; color: var(--text-muted); }
.ag-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ag-tiles span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 7px; font-size: 0.74rem; font-weight: 700; text-align: center; }
.ag-tiles i { font-style: normal; font-size: 1.2rem; }
/* Cukur yuvada parca secim */
.ag-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 12px; background: var(--cab-well); box-shadow: inset 0 2px 6px rgba(0,0,0,.55); }
.ag-seg label { flex: 1 1 auto; }
.ag-seg span { display: block; padding: 7px 8px; border-radius: 9px; font-size: 0.78rem; font-weight: 700; text-align: center; color: var(--text-muted); white-space: nowrap; }
.ag-seg input:checked + span { background: var(--cab-key); color: var(--text-main); box-shadow: 0 3px 0 var(--cab-key-shade), inset 0 0 0 2px var(--primary); }
.ag-opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.ag-more summary { cursor: pointer; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); width: max-content; }
.ag-more-in { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.ag-opts-led { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--led); box-shadow: inset 0 2px 8px var(--led-inset); }
.ag-opts-led b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--led-ink); text-shadow: 0 0 12px var(--led-glow); }
.ag-opts-led span { margin-left: auto; text-align: right; font-size: 0.74rem; line-height: 1.35; color: var(--scr-mute); }
.ag-opts-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 10px 4px 4px; }
.ag-opts-cancel { border: none; background: none; color: var(--text-muted); font-size: 0.85rem; cursor: pointer; padding: 6px; }
.ag-opts-go { display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer; border-radius: 12px; padding: 11px 18px; font-size: 0.95rem; font-weight: 800;
    color: var(--on-primary); background: var(--primary); box-shadow: 0 5px 0 var(--primary-shade); transition: transform .08s, box-shadow .08s; }
.ag-opts-go:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--primary-shade); }
.ag-opts-go .i { width: 16px; height: 16px; }
@media (max-width: 420px) { .ag-tiles { grid-template-columns: repeat(2, 1fr); } }
.ag-opt-summary { display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.74rem; color: var(--text-muted); }
.ag-opt-summary span { padding: 0.15rem 0.5rem; border: 1px solid var(--border); border-radius: 999px; }
.ag-diff { font-weight: 700; }
.ag-diff.kolay { color: #22c55e; } .ag-diff.orta { color: #eab308; } .ag-diff.zor { color: #ef4444; } .ag-diff.karisik { color: var(--primary); }

/* ---------- Arama ekraninda oyun sahnesi ---------- */
.call-stage.gaming .video-grid { flex: 0 0 104px; padding: 0.4rem 1.2rem; align-content: center; }
.stage-game { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 1.2rem 84px; }
.stage-game-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0 0.7rem; flex-shrink: 0;
    font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--primary-ink); }
.stage-game-head .i { width: 22px; height: 22px; }
.stage-game-head .btn { margin-left: auto; font-family: var(--font-body); font-size: 0.8rem; }
.stage-game-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; border-radius: 14px;
    background: var(--bg-panel); border: 1px solid var(--border); }
/* Kartlar yan yana; kac kisi gerektigi altta */
/* Secim ekrani kompakt (11-15 Napol: o kadar buyuk olmasina gerek yok): ortada, icerigi kadar; kartlar tek satir */
.stage-game.lobby { justify-content: center; }
.stage-game.lobby > * { width: 100%; max-width: 720px; margin-left: auto; margin-right: auto; }
.stage-game.lobby .stage-game-body { flex: 0 1 auto; padding: 10px; }
.stage-game .ag-cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.4rem; }
.stage-game .ag-card { gap: 0.6rem; border-radius: 10px; padding: 0.5rem 0.6rem; }
.stage-game .ag-card-icon { width: 34px; height: 34px; }
.stage-game .ag-card-icon .i { width: 18px; height: 18px; }
.stage-game .ag-card-main small:not(.ag-need) { display: none; }
.stage-game .ag-card-main { display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem; }
.stage-game .ag-need { margin-top: 0.1rem; }
/* Kutu kayarken (FLIP) genislik gecisi devre disi: ikisi ust uste binmesin */
.video-grid.flipping > * { transition: none !important; }
.ag-need { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.35rem; font-size: 0.74rem; font-weight: 700; color: var(--ok-text); }
.ag-need .i { width: 13px; height: 13px; }
.ag-need.no { color: var(--warn-text); }
/* Cizim tuvali sahneye sigsin (en/boy 8/5) */
.stage-game .ag-canvas { max-height: 52vh; width: auto; max-width: 100%; margin: 0 auto; }

/* Alt bar dugmesi: oyun aciksa sari, ustunde oyuncu sayisi; sahne aciksa cerceveli */
.stage-controls .sc-game { position: relative; }
.stage-controls .sc-game.live { background: var(--primary); color: var(--on-primary); box-shadow: 0 3px 0 var(--primary-shade); }
.stage-controls .sc-game.live:hover { background: var(--primary); filter: brightness(1.08); }
.stage-controls .sc-game.open { box-shadow: inset 0 0 0 2px var(--primary); }
.sc-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
    background: var(--danger); color: #fff; font-size: 0.68rem; font-weight: 700; display: grid; place-items: center; }

/* ---------- Oyun balonu (kabin): sese sonradan girene alt bar oyun dugmesinin ustunde ---------- */
.stage-controls.pinned { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ag-balloon { position: absolute; bottom: calc(100% + 14px); transform: translateX(-50%); width: 300px; max-width: calc(100vw - 32px);
    padding: 8px; border-radius: 16px; background: #17132e; border: 1px solid #2c2552; color: var(--text-main); text-align: left;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.07), inset 0 -3px 0 rgba(0,0,0,.45), 0 14px 34px rgba(0,0,0,.6);
    transition: opacity .25s ease; }
/* Solma 5 sn, dogrusal (11-15 Napol: bir anda kaybolmasin) */
.ag-balloon.fading { opacity: 0; transition: opacity 5s linear; }
.ag-balloon::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 9px solid transparent; border-top-color: #17132e; }
/* Kapat: Token penceresinin kapat tusu gibi kabin tusu (golgeli, basinca iner) */
.ag-balloon-x { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; padding: 0; border: none; border-radius: 7px;
    display: grid; place-items: center; cursor: pointer; z-index: 1;
    background: #2a2350; color: #c9c3e6; box-shadow: 0 2px 0 #110e22; transition: transform .08s, box-shadow .08s, background .15s; }
.ag-balloon-x:hover { background: #332b60; color: #f1edff; }
.ag-balloon-x:active { transform: translateY(2px); box-shadow: 0 0 0 #110e22; }
.ag-balloon-x .i { width: 13px; height: 13px; }
.ag-balloon-led { background: #07060d; border-radius: 10px; padding: 8px 34px 8px 10px; box-shadow: inset 0 2px 8px rgba(0,0,0,.9); }
.ag-balloon-led small { display: flex; align-items: center; gap: 6px; font-size: 0.62rem; font-weight: 700; letter-spacing: .1em; color: #86efac; }
.ag-balloon-led small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #86efac; box-shadow: 0 0 8px #86efac; animation: ag-blink 1.2s infinite; }
@keyframes ag-blink { 50% { opacity: .3; } }
.ag-balloon-led b { display: block; margin-top: 2px; font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1;
    color: #ffc83d; text-shadow: 0 0 12px rgba(255,200,61,.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-balloon-foot { display: flex; align-items: center; gap: 10px; padding: 8px 4px 2px; }
.ag-balloon-foot p { flex: 1; min-width: 0; margin: 0; font-size: 0.76rem; color: #9a94b8; line-height: 1.35; }
.ag-balloon-foot p b { color: #f1edff; }
.ag-balloon-stack { display: flex; flex: none; }
.ag-balloon-stack .avatar { border: 2px solid #17132e; margin-left: -8px; }
.ag-balloon-stack .avatar:first-child { margin-left: 0; }
@media (prefers-reduced-motion: reduce) {
    .ag-balloon.fading { transition: opacity .01s linear 5s; }
    .ag-balloon-led small::before { animation: none; }
}
/* Acik tema: Token penceresinin krem kabini */
html[data-theme="light"] .ag-balloon { background: #efe5cb; border-color: #d8c9a3; color: #3a2f1a;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(0,0,0,.08), 0 14px 34px rgba(70,55,30,.25); }
html[data-theme="light"] .ag-balloon::after { border-top-color: #efe5cb; }
html[data-theme="light"] .ag-balloon-led { background: #fbf3df; box-shadow: inset 0 2px 8px rgba(90,70,30,.25); }
html[data-theme="light"] .ag-balloon-led small { color: #15803d; }
html[data-theme="light"] .ag-balloon-led small::before { background: #15803d; box-shadow: 0 0 6px rgba(21,128,61,.6); }
html[data-theme="light"] .ag-balloon-led b { color: #b7791f; text-shadow: none; }
html[data-theme="light"] .ag-balloon-foot p { color: #7d6f52; }
html[data-theme="light"] .ag-balloon-x { background: #fffaf0; color: #7d6f52; box-shadow: 0 2px 0 #cdbb8f; }
html[data-theme="light"] .ag-balloon-x:hover { background: #fff6dd; color: #3a2f1a; }
html[data-theme="light"] .ag-balloon-foot p b { color: #3a2f1a; }
html[data-theme="light"] .ag-balloon-stack .avatar { border-color: #efe5cb; }

/* Telefonda bolunmus gorusmede sahne ekranin %45'i: profil seridi (104px) ve alt kontrol cubugu arasinda oyuna
   ~120px kaliyordu, kartlar cubugun altinda kayboluyordu. Oyun acikken sahne buyur, serit incelir. */
@media (max-width: 768px) {
    .call-stage.gaming { flex: 0 0 64%; }
    .call-stage.gaming .video-grid { flex-basis: 64px; padding: 0.25rem 0.8rem; }
    .stage-game { padding: 0 0.8rem 76px; }
    .stage-game .ag-cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Oyun sahneye sigsin (tarayicida pencere kisa / sohbet yanda acik) ----------
   Oyun alani 52vh'lik sabit tuval ve 420px'lik soru ekraniyla tasiyordu: 1366x650 tarayicida govde 258px iken icerik
   ~590px, tuval ve araclar asagida kaliyordu. Govde boyut kabi olur; tuval kalan yukseklige, sutunlar govdeye gore ayarlanir. */
.stage-game:not(.lobby) .stage-game-body { container: agbody / size; display: flex; flex-direction: column; }
.stage-game:not(.lobby) .stage-game-body > .ag-head { flex: none; margin-bottom: 0.5rem; }
.stage-game:not(.lobby) .stage-game-body > .ag-game { flex: 1 0 auto; }
/* Yalniz iki sutunlu oyun ekrani (.qz) govdeyi doldurur. Bekleme lobisi ve diger oyunlarda grid satirlari
   uzayan govdeye esnemesin: secenek haplari oval, oyuncu listesi dev kutu oluyordu (11-24) */
.stage-game:not(.lobby) .stage-game-body > .ag-game:not(:has(> .qz)) { align-content: start; }
/* Dar cizim ekrani: araclar tek-iki satira sigsin (renkler kucuk, tuslarda yalniz simge) */
.stage-game .dr-screen { container: drscreen / inline-size; }
@container drscreen (max-width: 720px) {
    .dr-tools { gap: 6px; }
    .dr-pal { grid-template-columns: repeat(6, 19px); gap: 4px; padding: 4px; }
    .dr-pal button { width: 19px; height: 19px; border-radius: 5px; }
    .dr-sizes { padding: 4px; gap: 3px; }
    .dr-sizes button { width: 28px; height: 28px; }
    .dr-key { padding: 7px 9px; }
    .dr-key .lbl { display: none; }
    .dr-sp { display: none; }
}
@container agbody (min-width: 520px) {
    /* Iki sutun govdeyi doldurur; sag sutunda sohbet kalan yere esner (kendi icinde kayar) */
    .stage-game .qz { min-height: 100%; align-items: stretch; grid-template-columns: minmax(0, 1.6fr) minmax(190px, 1fr); }
    .stage-game .qz-screen { min-height: 0; }
    .stage-game .qz-panel .qz-chat { flex: 1 1 0; min-height: 70px; max-height: none; }
    /* Tuval kalan yukseklige gore (tek sutunda, telefonda, eski 52vh siniri gecerli: orada sayfa zaten kayar) */
    .stage-game .ag-canvas { max-height: max(150px, calc(100cqh - 230px)); }
    .stage-game .dr-screen:has(.dr-tools) .ag-canvas { max-height: max(100px, calc(100cqh - 300px)); }
}
@container agbody (max-width: 519px) {
    .stage-game .qz { grid-template-columns: minmax(0, 1fr); }
    .stage-game .qz-screen { min-height: 0; }
}
/* Kisa govde: soru ekrani sikisir */
@container agbody (max-height: 480px) {
    .stage-game .qz-screen { padding: 12px; gap: 8px; }
    .stage-game .qz-q { font-size: 1.1rem; }
    .stage-game .qz-opt { min-height: 46px; padding: 9px 12px; }
    .stage-game .dr-word { min-height: 34px; }
    .stage-game .dr-word > span { height: 30px; font-size: 1.45rem; }
    /* Sag panel: bosluklar, satirlar ve tepki tuslari kuculur, sohbet kisalir */
    .stage-game .qz-panel { gap: 6px; }
    .stage-game .qz-board > div { padding-top: 3px; padding-bottom: 3px; }
    .stage-game .qz-panel .zd-react { gap: 4px; }
    .stage-game .qz-panel .zd-react button { min-width: 34px; height: 28px; padding: 0 6px; }
    .stage-game .qz-panel .qz-chat { min-height: 44px; }
}
/* Cok kisa govde: "Tepki" basligi gizlenir (tuslar zaten kendini anlatir) */
@container agbody (max-height: 400px) {
    .stage-game .qz-panel > .ag-sub:nth-child(3) { display: none; }
}
/* Kisa pencere (dizustu tarayici): profil seridi ve baslik incelir, oyuna yer kalir */
@media (min-width: 769px) and (max-height: 820px) {
    .call-stage.gaming .video-grid { flex-basis: 72px; padding-top: 0.25rem; padding-bottom: 0.25rem; }
    .stage-game-head { padding: 0.2rem 0 0.45rem; font-size: 1.3rem; }
    .stage-game { padding-bottom: 76px; }
}
