/* Oyunlar: ana sayfa kutusu ve resimli seçim menüsü (src/games.js) */
.games .gm-old { display: none; }
.gmtile { position: relative; justify-content: space-between; min-height: 92px; background-size: cover; background-position: center; border-color: var(--acc); }
.gmtile .pktext b { font-size: 1.5rem; }
.gmtile .pktext span { display: block; max-width: 34em; color: #f3eee6; }
.gm-go { flex: none; padding: 8px 14px; font: 800 .85rem var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--on-acc, #1a1200); background: var(--acc); border-radius: 3px; box-shadow: 0 0 16px rgba(var(--acc-rgb), .55); }
@media (min-width: 900px) { .games .gmtile { grid-column: span 2; } }

html.gm-lock, html.gm-lock body { overflow: hidden; }
#gm { position: fixed; inset: 0; z-index: 64; display: none; overflow-y: auto; padding: 24px 16px; background: rgba(5, 3, 2, .86); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
#gm.on { display: block; }
.gm-panel { max-width: 980px; margin: 0 auto; padding: 18px 20px 22px; color: var(--text); font-family: var(--font); background: linear-gradient(160deg, rgba(var(--p1-rgb), .55), rgba(10, 7, 5, .97) 55%); border: 1px solid rgba(var(--acc-rgb), .55); border-radius: 6px; box-shadow: 0 18px 60px rgba(0, 0, 0, .6); }
.gm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.gm-head h2 { margin: 0; font-style: italic; font-size: 1.8rem; text-transform: uppercase; color: var(--acc); }
.gm-x { width: 42px; height: 42px; font-size: 1.6rem; line-height: 1; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; cursor: pointer; }
.gm-x:hover { background: rgba(255, 255, 255, .18); }
.gm-sec { margin-top: 16px; }
.gm-sec h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 10px; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.gm-sec h3 span { font-size: .78rem; font-weight: 600; letter-spacing: .03em; text-transform: none; color: var(--muted); }
.gm-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gm-grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.gm-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left; color: var(--text); font-family: var(--font); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .18); border-radius: 5px; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.gm-card:hover { transform: translateY(-3px); border-color: var(--acc); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.gm-card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.gm-card.full { border-color: rgba(var(--acc-rgb), .7); }
.gm-pic { position: relative; display: block; aspect-ratio: 16 / 9; background: #0b0806; }
.gm-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gm-badge { position: absolute; left: 8px; top: 8px; padding: 3px 8px; font: 800 .7rem var(--font); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(4, 7, 10, .82); border: 1px solid rgba(255, 255, 255, .4); border-radius: 3px; }
.gm-card.full .gm-badge { color: var(--on-acc, #1a1200); background: var(--acc); border-color: var(--acc); }
.gm-tx { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.gm-tx b { font-style: italic; font-size: 1.15rem; text-transform: uppercase; color: var(--acc); line-height: 1.1; }
.gm-desc { font-size: .88rem; color: var(--muted); }
.gm-today { font-size: .8rem; font-weight: 700; color: #fff; }
.gm-today[hidden] { display: none; }
@media (max-width: 560px) {
  #gm { padding: 0; }
  .gm-panel { min-height: 100%; padding: 0 10px 16px; border: 0; border-radius: 0; }
  .gm-head { position: sticky; top: 0; z-index: 1; margin: 0 -10px; padding: 10px 10px 8px; background: rgba(12, 8, 6, .96); border-bottom: 1px solid rgba(var(--acc-rgb), .4); }
  .gm-head h2 { font-size: 1.4rem; }
  .gm-sec { margin-top: 12px; }
  .gm-grid, .gm-grid.two { grid-template-columns: 1fr; gap: 8px; }
  .gm-card { flex-direction: row; align-items: stretch; }
  .gm-pic { flex: none; width: 42%; aspect-ratio: auto; min-height: 92px; }
  .gm-badge { left: 4px; top: 4px; padding: 2px 5px; font-size: .6rem; }
  .gm-tx { justify-content: center; padding: 8px 10px; }
  .gm-tx b { font-size: 1rem; }
  .gm-desc { font-size: .8rem; line-height: 1.3; }
  .gmtile .gm-go { padding: 7px 10px; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .gm-card { transition: none; } .gm-card:hover { transform: none; } }

/* ---- Oyun merkezi (ana sayfa /, body.hub): menü sayfanın kendisi; transfer bölümü gizli, en alttaki kartla /takim açılır ---- */
.hub .wrap > header, .hub .layout, .hub .games, .hub #mbar, .hub #up, .hub .note, .hub #support, .hub .reqbar { display: none !important; }
.hub #gm { position: static; display: block; overflow: visible; padding: 20px 16px 40px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hub .gm-panel { max-width: 1100px; }
.hub .gm-head { margin-bottom: 4px; }
.gm-hero h1 { margin: 0; font-style: italic; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1; text-transform: uppercase; color: var(--acc); }
.gm-genre { display: block; margin-top: 6px; font-size: .42em; letter-spacing: .08em; color: var(--muted); }
.gm-lede { margin: 8px 0 0; max-width: 40em; color: var(--muted); font-size: 1rem; }
.gm-tr { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); }
.gm-trlink { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 14px 4px 0; text-decoration: none; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; }
.gm-trlink:hover { border-color: var(--acc); }
.gm-trlink:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.gm-trlink .gm-go { white-space: nowrap; }
@media (max-width: 560px) {
  .hub #gm { padding: 0 0 24px; }
  .hub .gm-head { position: static; margin: 0; padding: 18px 0 6px; background: none; border: 0; }
  .gm-hero h1 { font-size: 1.9rem; }
}
/* Maç sonu ekranıyla aynı dil: başlığın arkasında eğik renk şeritleri, kartlarda beyaz parıltılı odak */
.hub .gm-hero { position: relative; isolation: isolate; }
.hub .gm-hero::before { content: ""; position: absolute; z-index: -1; top: -18px; right: 4%; width: 150px; height: calc(100% + 30px); pointer-events: none; transform: skewX(-24deg); background: linear-gradient(90deg, transparent 0 18%, var(--acc) 18% 30%, transparent 30% 48%, rgba(255, 255, 255, .35) 48% 54%, transparent 54% 70%, var(--acc) 70% 76%, transparent 76%); opacity: .3; }
.hub .gm-card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .18), 0 10px 28px rgba(0, 0, 0, .5); }
@media (max-width: 560px) { .hub .gm-hero::before { width: 90px; right: 0; opacity: .25; } }

/* Dil düğmesi (src/i18n.js switcher): yalnızca oyun merkezinin en altında, sade bir metin satırı (TR · EN) */
.gm-foot { display: flex; justify-content: center; padding: 18px 0 6px; }
.lang-sw { display: inline-flex; align-items: center; }
.lang-sw button { min-width: 44px; min-height: 44px; padding: 0 8px; font: 700 .8rem/1 "Roboto Condensed", "Arial Narrow", Arial, sans-serif; letter-spacing: .06em; color: var(--muted, #9b9283); background: none; border: 0; cursor: pointer; opacity: .75; }
.lang-sw button + button { border-left: 1px solid rgba(255, 255, 255, .2); }
.lang-sw button[aria-pressed="true"] { color: #f3eee6; opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.lang-sw button:hover { opacity: 1; color: #f3eee6; }
.lang-sw button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
