/* Gazete32 Kelime Tahmin */
.g32w {
    --g32w-panel:  var(--bg3, #1a1a1a);
    --g32w-panel2: var(--bg4, #232323);
    --g32w-line:   var(--border, #2a2a2a);
    --g32w-text:   var(--text, #ececec);
    --g32w-muted:  var(--text2, #9b9b9b);
    --g32w-accent: var(--primary, #cc0000);
    --g32w-correct: #2f8f4e;
    --g32w-present: #b8921f;
    --g32w-absent:  #3a3a42;
    --tile: 56px;

    box-sizing: border-box;
    max-width: 520px; margin: 0 auto; padding: 14px 12px 0;
    color: var(--g32w-text);
    background: var(--g32w-panel);
    border: 1px solid var(--g32w-line); border-radius: 10px;
    overflow: hidden;
    font-family: inherit;
    -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.g32w.is-hc { --g32w-correct: #e8702a; --g32w-present: #5aa9e6; }
.g32w *, .g32w *::before, .g32w *::after { box-sizing: border-box; }

/* ── Üst şerit ── */
.g32w-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.g32w-tabs { display: inline-flex; border: 1px solid var(--g32w-line); border-radius: 8px; overflow: hidden; }
.g32w-tabs button {
    padding: 8px 12px; background: transparent; color: var(--g32w-muted);
    border: 0; border-right: 1px solid var(--g32w-line);
    font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.g32w-tabs button:last-child { border-right: 0; }
.g32w-tabs button[aria-pressed="true"] { background: var(--g32w-accent); color: #fff; }
.g32w-icons { display: flex; gap: 6px; }
.g32w-ib {
    width: 38px; height: 38px; padding: 0;
    background: transparent; color: var(--g32w-text);
    border: 1px solid var(--g32w-line); border-radius: 8px;
    font-size: 17px; line-height: 1; cursor: pointer;
}
.g32w-ib:hover { border-color: var(--g32w-muted); }
.g32w-ib[aria-pressed="true"][data-g32w-contrast] { background: var(--g32w-panel2); border-color: var(--g32w-muted); }

/* ── Tahta ── */
.g32w-boardwrap { position: relative; display: flex; justify-content: center; overflow: hidden; padding: 2px 0; }
.g32w-board { display: grid; gap: 6px; }
.g32w-row { display: grid; grid-template-columns: repeat(5, var(--tile)); gap: 6px; }
.g32w-tile {
    width: var(--tile); height: var(--tile);
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--g32w-absent); border-radius: 4px;
    font-size: calc(var(--tile) * .56); font-weight: 800; line-height: 1; color: #fff;
    background: transparent;
}
.g32w-tile.is-filled { border-color: #6d6d78; }
.g32w-tile.pop { animation: g32w-pop .12s ease-out; }
.g32w-tile.flip { animation: g32w-flip .5s ease-in-out; }
.g32w-tile.correct { background: var(--g32w-correct); border-color: var(--g32w-correct); }
.g32w-tile.present { background: var(--g32w-present); border-color: var(--g32w-present); }
.g32w-tile.absent  { background: var(--g32w-absent);  border-color: var(--g32w-absent); }
.g32w-row.shake { animation: g32w-shake .5s; }
@keyframes g32w-pop   { 0% { transform: scale(.9); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes g32w-flip  { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
@keyframes g32w-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .g32w-tile.flip, .g32w-tile.pop, .g32w-row.shake { animation: none; } }

/* ── Manşet bandı ── */
.g32w-flash {
    position: absolute; left: 0; right: 0; top: 36%; z-index: 3;
    display: flex; flex-direction: column; align-items: flex-start;
    pointer-events: none; line-height: 1.2;
    transform: translateX(-110%); opacity: 0;
}
.g32w-flash.is-on { animation: g32w-fl 2s cubic-bezier(.2,.8,.2,1) both; }
.g32w-flash-k { padding: 2px 10px; background: #fff; color: #b00000; font: 800 11px/1.5 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.g32w-flash-t {
    width: 100%; padding: 6px 14px 8px; background: #cc0000; color: #fff;
    font: italic 900 22px/1.15 Georgia, 'Times New Roman', 'Noto Serif', serif;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .55);
}
@keyframes g32w-fl {
    0%   { transform: translateX(-110%); opacity: 1; }
    14%  { transform: translateX(0); }
    78%  { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(110%); opacity: 1; }
}
@keyframes g32w-fl-fade { 0%, 100% { opacity: 0; transform: none; } 12%, 80% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .g32w-flash.is-on { animation: g32w-fl-fade 2s both; } }

/* ── Bitiş düğmeleri ── */
.g32w-after { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; }
.g32w-after[hidden] { display: none; }
.g32w-btn {
    min-height: 42px; padding: 8px 16px;
    background: transparent; color: var(--g32w-text);
    border: 1px solid var(--g32w-line); border-radius: 8px;
    font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.g32w-btn:hover { border-color: var(--g32w-muted); }
.g32w-btn-main { background: var(--g32w-accent); border-color: transparent; color: #fff; }
.g32w-btn-main:hover { filter: brightness(1.1); border-color: transparent; }

/* ── Klavye ── */
.g32w-kbd { margin: 16px auto 0; max-width: 500px; touch-action: manipulation; }
.g32w-krow { display: flex; justify-content: center; gap: 5px; margin-bottom: 6px; }
.g32w-key {
    flex: 1 1 0; min-width: 0; height: 52px; padding: 0;
    background: #4b4b55; color: #fff; border: 0; border-radius: 6px;
    font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.g32w-key.is-wide { flex: 1.55 1 0; font-size: 12px; }
.g32w-key.is-back { font-size: 18px; }
.g32w-key.correct { background: var(--g32w-correct); }
.g32w-key.present { background: var(--g32w-present); }
.g32w-key.absent  { background: #2a2a31; color: #8a8a94; }
.g32w-key:active { filter: brightness(1.3); }

/* ── ENTER hazır vurgusu ── */
.g32w-key.is-ready {
    background: var(--g32w-accent); color: #fff;
    animation: g32w-ready 1.1s ease-in-out infinite;
}
@keyframes g32w-ready {
    0%, 100% { box-shadow: 0 0 0 0 rgba(209, 15, 15, .55); transform: scale(1); }
    50%      { box-shadow: 0 0 0 6px rgba(209, 15, 15, 0); transform: scale(1.04); }
}
.g32w-hint {
    height: 20px; margin: 10px auto -6px; text-align: center;
    font-size: 12px; color: var(--g32w-muted); letter-spacing: .02em;
    opacity: 0; transition: opacity .15s;
}
.g32w-hint b { color: var(--g32w-text); }
.g32w-hint.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .g32w-key.is-ready { animation: none; } }

/* ── Bildirim, pencere, alt bilgi ── */
.g32w-toast {
    position: fixed; left: 50%; top: 90px; z-index: 100001; transform: translateX(-50%);
    padding: 10px 16px; background: #f2f2f2; color: #111; border-radius: 8px; font-size: 14px; font-weight: 700;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
}
.g32w-toast[hidden] { display: none; }
.g32w-dlg {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(0, 0, 0, .72);
}
.g32w-dlg[hidden] { display: none; }
.g32w-dlg-box {
    position: relative; width: 100%; max-width: 420px; max-height: 92vh; overflow: auto;
    padding: 22px 22px 20px; background: #121216; color: #f2f2f2;
    border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px;
    font-size: 15px; line-height: 1.5; text-align: left;
    -webkit-user-select: text; user-select: text;
}
.g32w-dlg-box h2 { margin: 0 0 10px; font: italic 900 26px/1.15 Georgia, 'Times New Roman', 'Noto Serif', serif; color: #fff; }
.g32w-dlg-box h3 { margin: 18px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a3a3ab; }
.g32w-dlg-box p { margin: 0 0 10px; color: #d7d7dd; }
.g32w-x {
    position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; padding: 0;
    background: transparent; color: #cfcfd6; border: 0; border-radius: 6px; font-size: 16px; cursor: pointer;
}
.g32w-x:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.g32w-ex { display: flex; gap: 5px; margin: 10px 0 6px; }
.g32w-tile.mini { --tile: 40px; width: 40px; height: 40px; font-size: 22px; }
.g32w-ans { letter-spacing: .12em; color: #fff; }
.g32w-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; text-align: center; }
.g32w-nums b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.g32w-nums span { font-size: 11px; color: #a3a3ab; }
.g32w-dist { display: grid; gap: 4px; }
.g32w-drow { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.g32w-drow span { width: 12px; text-align: right; color: #a3a3ab; }
.g32w-drow i { display: block; padding: 2px 8px; background: #3a3a42; color: #fff; font-style: normal; font-weight: 700; text-align: right; border-radius: 3px; }
.g32w-drow i.hit { background: var(--g32w-correct); }
.g32w-dlg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.g32w-dlg-actions .g32w-btn { flex: 1 1 140px; }
.g32w-dlg-box .g32w-btn { color: #fff; border-color: rgba(255, 255, 255, .28); }
.g32w-dlg-box .g32w-btn-main { border-color: transparent; }

.g32w-footer {
    margin: 16px -12px 0; padding: 8px 16px;
    border-top: 1px solid var(--g32w-line);
    color: var(--g32w-muted); font-size: 11px; text-align: center; letter-spacing: .02em;
}
.g32w-ver { margin-left: 6px; font-weight: 700; color: var(--g32w-text); }
.g32w-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g32w button:focus-visible { outline: 2px solid var(--g32w-accent); outline-offset: 2px; }

/* ── Dar ekran ── */
.g32w.is-compact { padding: 10px 8px 0; }
.g32w.is-compact .g32w-top { margin-bottom: 10px; }
.g32w.is-compact .g32w-tabs button { padding: 7px 9px; font-size: 12px; }
.g32w.is-compact .g32w-ib { width: 34px; height: 34px; font-size: 15px; }
.g32w.is-compact .g32w-key { height: 48px; font-size: 14px; }
.g32w.is-compact .g32w-key.is-wide { font-size: 11px; }
.g32w.is-compact .g32w-krow { gap: 4px; margin-bottom: 5px; }
.g32w.is-compact .g32w-footer { margin: 14px -8px 0; }
.g32w.is-compact .g32w-flash-t { font-size: 17px; }

/* ═════════════ Tam genişlik oyun sayfası (sitenin kendi başlığı ve altbilgisiyle) ═════════════ */
body.g32w-themed { overflow-x: hidden; }

.g32w-page {
    position: relative; isolation: isolate; overflow: hidden;
    width: 100vw; max-width: none; margin-left: calc(50% - 50vw);
    background: #09090c; color: #f2f2f2;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.g32w-page:fullscreen { width: 100%; margin: 0; height: 100%; display: flex; flex-direction: column; overflow-y: auto; }
.g32w-page:-webkit-full-screen { width: 100%; margin: 0; height: 100%; display: flex; flex-direction: column; overflow-y: auto; }

/* Arka plan: kırmızı mürekkep ışığı ve dev kutu ızgarası */
.g32w-page::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(1000px 520px at 50% 112%, rgba(204, 0, 0, .30), transparent 62%),
        radial-gradient(700px 440px at 104% -6%, rgba(204, 0, 0, .14), transparent 60%),
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 76px 76px,
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 76px 76px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, rgba(0,0,0,.25) 100%);
            mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, rgba(0,0,0,.25) 100%);
}

.g32w-bar {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
    padding: 10px 16px;
    background: rgba(9, 9, 12, .6);
    border-bottom: 4px double rgba(255, 255, 255, .28);
}
.g32w-title { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.g32w-masthead { font: italic 900 30px/1 Georgia, 'Times New Roman', 'Noto Serif', serif; letter-spacing: -.01em; color: #fff; }
.g32w-date { margin-top: 4px; font-size: 11px; color: #a3a3ab; }
.g32w-tools { justify-self: end; display: flex; align-items: center; gap: 8px; }
.g32w-iconbtn {
    width: 40px; height: 40px; padding: 0;
    background: transparent; color: #fff;
    border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px;
    font-size: 18px; line-height: 1; cursor: pointer;
}
.g32w-iconbtn:hover { border-color: #fff; }
.g32w-iconbtn[hidden] { display: none; }
.g32w-bar :focus-visible { outline: 2px solid #ff4d4d; outline-offset: 2px; }

.g32w-main { position: relative; z-index: 1; display: flex; justify-content: center; }
.g32w-page:fullscreen .g32w-main { flex: 1 1 auto; }
.g32w-page:-webkit-full-screen .g32w-main { flex: 1 1 auto; }

.g32w-page .g32w {
    --g32w-panel: transparent;
    --g32w-panel2: rgba(255, 255, 255, .06);
    --g32w-line: rgba(255, 255, 255, .16);
    --g32w-text: #f2f2f2;
    --g32w-muted: #a3a3ab;
    --g32w-accent: #d10f0f;

    width: 100%; margin: 0 auto; padding: 18px 12px 0;
    background: transparent; border: 0; border-radius: 0; overflow: visible;
}
.g32w-page .g32w.is-compact { padding: 12px 8px 0; }
.g32w-page .g32w-ib-snd { display: none; }
.g32w-page .g32w-footer { background: rgba(9, 9, 12, .6); }
.g32w-page .g32w-flash-t { font-size: 24px; }
.g32w-page .g32w.is-compact .g32w-flash-t { font-size: 17px; }

@media (max-width: 719px) {
    .g32w-bar { padding: 6px 10px; gap: 6px; }
    .g32w-masthead { font-size: 22px; }
    .g32w-date { display: none; }
    .g32w-iconbtn { width: 36px; height: 36px; font-size: 16px; }
}
@media (max-height: 560px) { .g32w-date { display: none; } }

/* ═════════════ v1.0.1: Pencere (nasıl oynanır / istatistik) — açık/koyu tema ne olursa olsun koyu kalır ═════════════ */
body .g32w .g32w-dlg .g32w-dlg-box {
    background: #121216 !important; color: #f2f2f2 !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    color-scheme: dark;
    filter: none !important; opacity: 1 !important;
}
body .g32w .g32w-dlg .g32w-dlg-box h2,
body .g32w .g32w-dlg .g32w-dlg-box b,
body .g32w .g32w-dlg .g32w-dlg-box strong,
body .g32w .g32w-dlg .g32w-dlg-box .g32w-ans,
body .g32w .g32w-dlg .g32w-dlg-box .g32w-nums b { color: #fff !important; background: transparent !important; }
body .g32w .g32w-dlg .g32w-dlg-box p,
body .g32w .g32w-dlg .g32w-dlg-box li { color: #d7d7dd !important; background: transparent !important; }
body .g32w .g32w-dlg .g32w-dlg-box h3,
body .g32w .g32w-dlg .g32w-dlg-box .g32w-nums span,
body .g32w .g32w-dlg .g32w-dlg-box .g32w-drow span { color: #a3a3ab !important; background: transparent !important; }
body .g32w .g32w-dlg .g32w-dlg-box .g32w-x { color: #cfcfd6 !important; background: transparent !important; }
body .g32w .g32w-dlg .g32w-dlg-box .g32w-x:hover { color: #fff !important; background: rgba(255, 255, 255, .08) !important; }
body .g32w .g32w-dlg .g32w-dlg-box .g32w-btn { color: #fff !important; background: transparent !important; border-color: rgba(255, 255, 255, .28) !important; }
body .g32w .g32w-dlg .g32w-dlg-box .g32w-btn-main { background: var(--g32w-accent, #d10f0f) !important; border-color: transparent !important; }
/* Örnek kutucuklar: tema ne derse desin renkleri sabit */
body .g32w .g32w-dlg-box .g32w-tile { color: #fff !important; background: transparent; border-color: #6d6d78; }
body .g32w .g32w-dlg-box .g32w-tile.correct { background: var(--g32w-correct) !important; border-color: var(--g32w-correct) !important; }
body .g32w .g32w-dlg-box .g32w-tile.present { background: var(--g32w-present) !important; border-color: var(--g32w-present) !important; }
body .g32w .g32w-dlg-box .g32w-tile.absent  { background: var(--g32w-absent)  !important; border-color: var(--g32w-absent)  !important; }
body .g32w .g32w-dlg-box .g32w-drow i { color: #fff !important; background: #3a3a42 !important; }
body .g32w .g32w-dlg-box .g32w-drow i.hit { background: var(--g32w-correct) !important; }
