/* ══════════════════════════════════════════════════════════════════════
   minikoyuncu
   Ölçüler ve renkler CrazyGames'in kendi CSS'inden alındı.
   Tahmin yok — her değerin kaynağı var.
   ══════════════════════════════════════════════════════════════════════ */

/* ── 1. TOKENLAR ──────────────────────────────────────────────────── */

:root {
  /* Marka — CG: --brand-* */
  --brand:       #6842ff;   /* brand-100 */
  --brand-60:    #a48eff;
  --brand-80:    #8668ff;
  --brand-120:   #5335cc;

  /* Siyahlar — CG: --black-* */
  --black-100:   #0c0d14;   /* sayfa zemini */
  --black-90:    #13141e;
  --black-80:    #1a1b28;
  --black-70:    #212233;   /* header */
  --black-60:    #28293d;   /* ayraç */
  --black-50:    #2f3148;
  --black-40:    #373952;   /* arama kutusu */

  /* Beyazlar — CG: --white-* */
  --white-100:   #f9faff;
  --white-60:    #bdbfce;
  --white-50:    #aaadbe;
  --white-30:    #878a9e;
  --white-20:    #777a8f;
  --white-10:    #666a7f;

  --alert:       #e70d5c;
  --warning:     #ffac4a;
  --success:     #4af0a7;

  /* Ölçüler — CG'nin kendi değişkenleri */
  --base-unit:            8px;
  --header-height:        60px;
  --sidebar-w:            200px;   /* açık */
  --sidebar-collapsed-w:  60px;    /* kapalı */
  --sidebar-item-h:       34px;
  --sidebar-icon:         22px;

  /* Ray — CG formülü.
     Kart genişliği sabit DEĞİL: ekran (sütun + peek)'e bölünür.
     peek 0.25 → sağda çeyrek kart görünür, "devamı var" sinyali. */
  --carousel-peek:          .25;
  --carousel-offset:        76px;
  --carousel-gap:           4px;   /* base-unit * .5 */
  --carousel-pad-y:         12px;  /* base-unit * 1.5 */
  --carousel-columns:       2;     /* <600px */
  --carousel-slide-width:   calc((100vw - var(--carousel-offset)) / (var(--carousel-columns) + var(--carousel-peek)));

  /* Kart oranı — CG: --game-thumb-aspect-ratio 100/178 → 16:9 */
  --thumb-ratio: 178 / 100;

  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* CG'nin sütun tablosu */
@media (min-width: 600px)  { :root { --carousel-columns: 3; } }
@media (min-width: 800px)  { :root { --carousel-columns: 4; } }
@media (min-width: 1000px) { :root { --carousel-columns: 5; } }
@media (min-width: 1200px) { :root { --carousel-columns: 6; } }
@media (min-width: 1700px) { :root { --carousel-columns: 7; } }
@media (min-width: 2100px) { :root { --carousel-columns: 8; } }
@media (min-width: 3000px) { :root { --carousel-columns: 9; } }

/* ── 2. TEMEL ─────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--black-100);
  color: var(--white-100);
  font-family: var(--font);
  font-size: 14px;              /* CG: --font-size-body */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }

:focus-visible { outline: 2px solid var(--brand-60); outline-offset: 2px; border-radius: 6px; }

/* ── Genel sayfa kaydırma çubuğu ─────────────────────────────────── */

html {
  scrollbar-width: thin;
  scrollbar-color: var(--black-50) var(--black-90);
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--black-90); }
::-webkit-scrollbar-thumb {
  background: var(--black-50);
  border-radius: 30px;
  border: 3px solid var(--black-90);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-60); }


.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; z-index: 999;
  background: var(--brand); color: #fff;
  padding: 10px 18px; border-radius: 8px; font-weight: 800;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ── 3. HEADER  (CG: .Header_root) ────────────────────────────────── */

.hdr {
  position: fixed; inset: 0 0 auto 0;
  z-index: 12;
  height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--black-70);
  border: 0; box-shadow: none;
}

.hdr__left {
  display: flex; align-items: center;
  padding-left: var(--base-unit);
  gap: 4px;
}

.hdr__toggle {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--white-50);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.hdr__toggle:hover { background: var(--black-50); color: var(--white-100); }

.hdr__logo { display: flex; align-items: center; gap: 10px; }
.hdr__logo-mark {
  width: 35px; height: 35px; border-radius: 50%;
  background: linear-gradient(140deg, var(--brand-80), var(--brand));
  display: grid; place-items: center; color: #fff; flex: none;
}
.hdr__logo-pill {
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 16px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--brand-80), var(--brand));
  font-family: 'Baloo 2', var(--font);
  font-size: 17px; font-weight: 800; letter-spacing: -.01em;
  color: #fff;
}
.hdr__logo-accent { color: var(--brand-60); }

/* Arama: CG'de mutlak konumlu, ekranın tam ortasında */
.hdr__search {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 460px;
}
.hdr__search input {
  width: 100%; height: 40px;
  padding: 0 16px 0 44px;
  border-radius: 30px;
  background: var(--black-40);
  border: 1px solid transparent;
  color: var(--white-50);
  font-family: var(--font);
  font-size: 16px; font-weight: 700;
  outline: 0;
  transition: border-color .2s var(--ease);
}
.hdr__search input::placeholder { color: var(--white-50); opacity: 1; }
.hdr__search input:focus { border-color: var(--brand); }
.hdr__search-ico {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--white-50); pointer-events: none; display: flex;
}

.hdr__right {
  display: flex; align-items: center; justify-content: flex-end;
  min-width: 115px;
  padding-right: 16px;
  gap: 16px;
}

.hdr__btn {
  position: relative;
  display: grid; place-items: center;
  color: var(--white-50);
  transition: color .2s var(--ease);
}

/* Mobil arama ikonu — masaüstünde gizli */
.hdr__search-btn { display: none; }
.hdr__btn:hover { color: var(--white-100); }

.hdr__badge {
  position: absolute; top: -6px; right: -8px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: var(--alert); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 18px;
  text-align: center;
}

/* CG: .czyButton--contained--purple */
.hdr__login {
  display: flex; align-items: center; justify-content: center;
  height: 40px; padding: 8px 16px;
  border-radius: 30px;
  background: var(--brand); color: var(--white-100);
  font-size: 16px; font-weight: 800;
  transition: background .25s ease;
}
.hdr__login:hover { background: var(--brand-80); }

.hdr__user { position: relative; }
.hdr__user-btn {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px 0 4px;
  border-radius: 30px;
  transition: background .2s var(--ease);
}
.hdr__user-btn:hover { background: var(--black-50); }
.hdr__user-btn img { width: 32px; height: 32px; border-radius: 50%; }
.hdr__user-name {
  font-size: 14px; font-weight: 800;
  max-width: 96px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.hdr__dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 210px; padding: 6px;
  background: var(--black-60);
  border: 1px solid var(--black-50);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
  display: none;
}
.hdr__dropdown[data-open] { display: block; }
.hdr__dropdown a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 700; color: var(--white-50);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.hdr__dropdown a:hover { background: var(--black-50); color: var(--white-100); }

/* ── Oyunlarım paneli (kalp ikonu) ───────────────────────────────── */

.hdr__mygames { position: relative; }

/* Mobil-öncelikli: varsayılan TAM EKRAN modal (arama paneliyle aynı
   mantık) — CrazyGames mobilde de böyle davranır. Masaüstünde
   (≥801px) küçük bir dropdown'a dönüşür. */
.mygames {
  position: fixed; inset: 0;
  z-index: 200;
  background: var(--black-90);
  display: none;
  overflow-y: auto;
}
.mygames[data-open] { display: block; }

.mygames__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px;
  position: sticky; top: 0;
  background: var(--black-90);
  z-index: 1;
}
.mygames__title { font-size: 19px; font-weight: 800; }
.mygames__close {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--white-50);
}
.mygames__close:hover { background: var(--black-50); color: var(--white-100); }

.mygames__tabs {
  display: flex; gap: 4px;
  padding: 4px 16px 0;
  border-bottom: 1px solid var(--black-50);
}
.mygames__tab {
  flex: 1;
  padding: 10px 2px 14px;
  font-size: 14px; font-weight: 800;
  color: var(--white-30);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s var(--ease);
}
.mygames__tab:hover { color: var(--white-60); }
.mygames__tab[aria-selected="true"] { color: var(--white-100); border-bottom-color: var(--brand); }

.mygames__body { padding: 16px; }
.mygames__list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
/* [hidden] öznitelği, aynı önceliğe sahip .mygames__list{display:grid}
   kuralı SONRA geldiği için eziliyordu — sekmeler arası gizleme hiç
   çalışmıyordu, üçü de her zaman görünürdü. Açıkça override ediyoruz. */
.mygames__list[hidden] { display: none; }
.mygames__list .card { width: 100%; aspect-ratio: 16/10; }
.mygames__empty { padding: 40px 10px; text-align: center; color: var(--white-30); font-size: 13.5px; }

.mygames__all {
  display: block;
  padding: 14px; text-align: center;
  font-size: 13.5px; font-weight: 800; color: var(--brand-60);
  border-top: 1px solid var(--black-50);
  transition: background .15s var(--ease);
}
.mygames__all:hover { background: var(--black-50); color: var(--brand); }

@media (min-width: 480px) {
  .mygames__list { grid-template-columns: repeat(3, 1fr); }
}

/* Masaüstü — tam ekran değil, kalp ikonunun altına kilitlenen normal
   boyutlu bir dropdown. */
@media (min-width: 801px) {
  .mygames {
    position: fixed; inset: auto; right: 16px; top: var(--header-height);
    width: 460px; max-width: calc(100vw - 32px);
    margin-top: 8px;
    background: var(--black-70);
    border: 1px solid var(--black-50);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,.6);
    overflow: hidden;
  }
  .mygames__body { max-height: 420px; overflow-y: auto; }
  .mygames__head { padding: 14px 16px 0; position: static; }
  .mygames__title { font-size: 17px; }
  .mygames__close { width: 30px; height: 30px; }
  .mygames__tabs { padding: 14px 16px 0; }
  .mygames__list { grid-template-columns: repeat(2, 1fr); }
}

/* ── 4. SIDEBAR  (CG: .Sidebar_link) ──────────────────────────────── */

.side {
  position: fixed; left: 0; top: var(--header-height); bottom: 0;
  width: var(--sidebar-collapsed-w);
  z-index: 11;
  padding: 12px 0;
  background: var(--black-100);
  overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  transition: width .2s var(--ease);
}
.side::-webkit-scrollbar { display: none; }

.side:hover, .side[data-pinned] { width: var(--sidebar-w); }
.side:hover:not([data-pinned]) { box-shadow: 10px 0 40px rgba(0,0,0,.5); }

/* Hamburger'a basınca sidebar komple kaybolur — CrazyGames davranışı */
.side[data-hidden] { width: 0; padding: 12px 0; overflow: hidden; }
.side[data-hidden]:hover { width: 0; box-shadow: none; }

/* 6px'lik sol şerit + yuvarlatılmış hover vurgusu — aktif öğede renklenir */
.side__item {
  position: relative;
  display: flex; align-items: center;
  width: var(--sidebar-w);
  height: var(--sidebar-item-h);
  margin: 1px 0;
  border-left: 6px solid transparent;
  color: var(--white-30);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.side__item::before {
  content: "";
  position: absolute; inset: 3px 8px 3px 6px;
  border-radius: 12px;
  background: var(--black-60);
  opacity: 0;
  transition: opacity .18s var(--ease);
  z-index: -1;
}
.side__item:hover::before { opacity: 1; }
.side__item:hover { color: var(--white-50); }
.side__item[aria-current] {
  border-left-color: var(--brand-60); color: var(--white-100);
}
.side__item[aria-current]::before {
  opacity: 1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 20%, transparent), transparent);
}

.side__ico {
  width: var(--sidebar-collapsed-w);
  margin-left: -6px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  color: var(--white-50);
  transition: transform .18s var(--ease), color .18s var(--ease);
}
.side__item:hover .side__ico { color: var(--white-100); transform: scale(1.08); }
.side__item[aria-current] .side__ico { color: var(--brand-60); }

.side__label {
  font-size: 15px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis;
  opacity: 0; visibility: hidden;
  transition: visibility 0s, opacity .3s, transform .2s ease-in-out;
}
.side:hover .side__label,
.side[data-pinned] .side__label { opacity: 1; visibility: visible; }
.side__item:hover .side__label { transform: translateX(var(--base-unit)); }

.side__sep {
  margin: var(--base-unit) 16px;
  border: 0; border-top: 1px solid var(--black-60);
}

.side__head {
  padding: 12px 0 6px 20px;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--white-10);
  white-space: nowrap;
  opacity: 0; visibility: hidden;
  transition: visibility 0s, opacity .3s;
}
.side:hover .side__head,
.side[data-pinned] .side__head { opacity: 1; visibility: visible; }

/* ── 5. YERLEŞİM ──────────────────────────────────────────────────── */

.main {
  margin-left: var(--sidebar-collapsed-w);
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  padding: 16px var(--base-unit) 40px;
  transition: margin-left .2s var(--ease);
}
.main[data-pinned] { margin-left: var(--sidebar-w); }
.main[data-hidden] { margin-left: 0; }

.backdrop {
  position: fixed; inset: 0; z-index: 10;
  background: transparent; /* CrazyGames'te koyu perde yok, sidebar direkt kayboluyor */
  display: none;
}
.backdrop[data-open] { display: block; }

/* ── 6. KART  (CG: .GameThumbDesktop_gameThumbLinkDesktop) ────────── */

.card {
  position: relative; display: block;
  width: 100%;
  aspect-ratio: var(--thumb-ratio);
  border-radius: 16px;
  border: 2px solid transparent;
  background-color: hsla(0, 0%, 100%, .07);
  background-clip: padding-box;
  container-type: inline-size;
  contain: layout;
  z-index: 0;
}
.card {
  /* NOT: overflow:hidden burada YOK — .card__media zaten kendi içinde
     görseli kırpıyor. Burada olsaydı, kartın dışına taşan rozeti
     (badge, -4px offset) köşeden tuhaf şekilde kesiyordu. */
  isolation: isolate;
}
.card:hover {
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0,0,0,.6), 0 0 0 2px var(--brand);
  z-index: 10;
}

/* Görsel sarmalayıcı — zoom burada olur, kartın kendisinde değil */
.card__media {
  position: absolute; inset: 0;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
}

/* Zoom görselin kendisinde — kutu sabit kalır, başlık kaymaz.
   CG'nin scale(1.2)+overflow:visible yaklaşımı kartı komşularının
   üstüne taşırıyor ve başlık şeridi görselden kopuyor. */
.card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  color: transparent;
  transform-origin: center center;
  transition: transform .28s var(--ease);
}
.card:hover .card__img { transform: scale(1.09); }

/* Başlık: DOM'da hep var (SEO + ekran okuyucu), gözle hover'da.
   CG'de zemin MOR gradient — siyah değil. */
.card__title {
  position: absolute; inset: auto 0 0 0;
  z-index: 3;
  padding: 12px;
  background: linear-gradient(180deg,
    rgba(104,66,255,0),
    rgba(104,66,255,.6) 40%,
    #6842ff 79.81%);
  pointer-events: none;
  border-radius: 0 0 14px 14px;
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.card:hover .card__title { opacity: 1; }

.card__name {
  display: block;
  color: #fff;
  font-size: 14px; font-weight: 900;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.card__meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 4px;
  font-size: 10px; font-weight: 700;
}
.card__cat {
  padding: 2px 6px; border-radius: 8px;
  background: rgba(0,0,0,.4);
  max-width: 100px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card__plays { display: flex; align-items: center; gap: 4px; }

/* Dar kartta alt satırı gizle — sığmıyor */
@container (max-width: 150px) {
  .card__meta { display: none; }
  .card__name { font-size: 12px; }
}

/* ── 7. ROZET  (CG: .GameThumbLabel_label) ────────────────────────── */

.badge {
  position: absolute; top: -4px; left: -4px;   /* kartın DIŞINA taşar */
  z-index: 4;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 6px;
  border-radius: 8px;
  box-shadow: 4px 4px 20px 0 rgba(0,0,0,.5);
  font-size: 12px; font-weight: 800; line-height: 1.3;
  color: #fff;
  user-select: none;
}
.badge svg { width: 16px; height: 16px; margin-right: 4px; }

/* CG'nin tam gradientleri */
.badge--hot      { background: linear-gradient(90deg, #ff2f0f, #ff8b2d); }
.badge--new      { background: linear-gradient(90deg, #c93dd1, #8a4fff); }
.badge--top      { background: linear-gradient(90deg, #ffc352, #faff9c); color: #36390d; }
.badge--updated  { background: linear-gradient(90deg, #28c7df, #5082ff); }
.badge--original { background: #fff; color: var(--brand); }

/* ── 8. BÖLÜM BAŞLIĞI  (CG: .CarouselSectionTitle) ────────────────── */

.sec { margin-bottom: 4px; }

.sec__head {
  display: flex; flex-direction: row;
  width: 100%; min-height: 32px;
  padding-right: 16px;
  align-items: flex-end;
}
.sec__title {
  margin: 0;
  align-self: flex-end;
  padding: 0 16px 3px 12px;
  color: #fff;
  font-size: 20px; font-weight: 700; line-height: 135%;
  user-select: none;
}
.sec__more {
  align-self: center;
  color: var(--brand-60);
  font-size: 14px; font-weight: 700;
  white-space: nowrap;
  line-height: 1;
  transition: color .2s var(--ease);
}
.sec__more:hover { color: var(--brand); }

/* ── 9. RAY  (CG: .CrazyCarousel) ─────────────────────────────────── */

.rail {
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.rail__track {
  display: flex;
  gap: var(--carousel-gap);
  padding-block: var(--carousel-pad-y);
  padding-inline: var(--base-unit);
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-padding-inline-start: var(--base-unit);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: translateZ(0);
}
.rail__track::-webkit-scrollbar { display: none; }

.rail__track > * {
  flex: 0 0 var(--carousel-slide-width);
  scroll-snap-align: start;
  position: relative;
}

/* Ok — CG: 60×60, yarıçap 22, opacity 0 → hover'da 1 */
.rail__nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 60px; height: 60px;
  border-radius: 22px;
  background-color: rgba(0,0,0,.9);
  border: 2px solid #000;
  box-shadow: 0 10px 30px 0 rgba(0,0,0,.7);
  color: #fff;
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity .25s ease, border-color .25s ease;
}
.rail:hover .rail__nav { opacity: 1; }
.rail__nav:focus-visible { opacity: 1; }
.rail__nav:hover { border-color: #fff; }
.rail__nav[hidden] { display: none; }
.rail__nav--prev { left: 0; margin-left: -20px; }
.rail__nav--next { right: 0; margin-right: -20px; }

/* Dokunmatikte ok yok — parmakla kaydırılır */
@media (hover: none) {
  .rail__nav { display: none; }
}

/* ── 10. HERO RAYI ────────────────────────────────────────────────
   CG kalıbı: 2 satır, her 5'linin ilki 2 sütun × 2 satır.

     ┌─────────┬────┬────┐
     │         │ 2  │ 4  │
     │    1    ├────┼────┤
     │         │ 3  │ 5  │
     └─────────┴────┴────┘
   Aynı sütun birimini kullanır — büyük kart tam 2 küçük kart eder. */

.rail--hero .rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: var(--carousel-slide-width);
}
.rail--hero .rail__track > * { flex: none; }

.rail--hero .rail__track > *:nth-child(5n + 1) {
  grid-row: span 2;
  grid-column: span 2;
}
/* Büyük kartta başlık hep açık */
.rail--hero .rail__track > *:nth-child(5n + 1) .card__title { opacity: 1; }
.rail--hero .rail__track > *:nth-child(5n + 1) .card__name { font-size: 20px; }

/* ── 11. KATEGORİ KARTLARI (üst şerit) ────────────────────────────── */

.chips { margin: 0 0 12px; }
.chips__track { scroll-snap-type: x proximity; }

.chip {
  position: relative;
  flex: 0 0 var(--carousel-slide-width);
  aspect-ratio: 284 / 150;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  background: var(--black-80);
  transition: transform .16s var(--ease);
}
.chip:hover { transform: translateY(-3px); }

/* Kapak görseli — kategorideki en popüler oyunun kartı, karartılmış */
.chip__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .55;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.chip:hover .chip__bg { transform: scale(1.06); opacity: .68; }

/* Görselin üstüne marka rengi + okunabilirlik için karartma */
.chip::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(7,7,11,.92) 8%, rgba(7,7,11,.15) 55%, transparent 75%),
    linear-gradient(150deg, var(--chip-c) -20%, transparent 65%);
  pointer-events: none;
}

.chip__ico {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
  transition: transform .3s var(--ease);
}
.chip:hover .chip__ico { transform: scale(1.12) rotate(-6deg); }

.chip__n {
  position: absolute; left: 16px; bottom: 36px; z-index: 1;
  font-size: 11px; font-weight: 700;
  color: var(--white-60);
}
.chip__label {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1;
  font-size: 18px; font-weight: 800; line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── 12. IZGARA (kategori / arama) ────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(var(--carousel-columns), minmax(0, 1fr));
  gap: var(--carousel-gap);
  padding: 0 var(--base-unit);
}
/* mygames__list'teki aynı hata: [hidden], display:grid tarafından
   eziliyordu (Son Oynananlar sayfası JS ile bunu aç/kapat yapıyor). */
.grid[hidden] { display: none; }

/* ── 13. ARAMA OVERLAY ────────────────────────────────────────────── */

.srch {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,6,12,.84);
  backdrop-filter: blur(10px);
  padding: 80px 16px 16px;
  display: none;
  overflow-y: auto;
}
.srch__back { display: none; }
.srch[data-open] { display: block; }

/* Masaüstünde: tam ekran modal değil, arama çubuğunun altına JS ile
   piksel hassasiyetinde kilitlenen bir dropdown — CrazyGames gibi. */
@media (min-width: 801px) {
  .srch {
    background: transparent;
    backdrop-filter: none;
    padding: 0;
  }
}

.srch__box {
  max-width: 760px; margin: 0 auto;
  background: var(--black-80);
  border: 1px solid var(--black-50);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.srch__bar {
  display: flex; align-items: center; gap: 12px;
  height: 62px; padding: 0 18px;
  border-bottom: 1px solid var(--black-60);
  color: var(--white-50);
}
.srch__bar input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  color: var(--white-100);
  font-size: 17px; font-weight: 700;
}
.srch__bar input::placeholder { color: var(--white-30); }
.srch__close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--black-50);
  display: grid; place-items: center;
  color: var(--white-50); flex: none;
}
.srch__close:hover { background: var(--black-40); color: var(--white-100); }

.srch__body { padding: 14px; max-height: 62vh; overflow-y: auto; }
.srch__hint {
  padding: 4px 4px 12px;
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--white-30);
}
.srch__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.srch__empty {
  padding: 44px 20px; text-align: center;
  color: var(--white-30); font-weight: 700;
}

/* İskelet yükleme */
.skel {
  border-radius: 16px;
  aspect-ratio: var(--thumb-ratio);
  background: linear-gradient(100deg, var(--black-80) 30%, var(--black-60) 50%, var(--black-80) 70%);
  background-size: 220% 100%;
  animation: skel 1.1s linear infinite;
}
@keyframes skel { from { background-position: 180% 0; } to { background-position: -80% 0; } }

/* ── 14. SAYFA BAŞLIĞI (kategori) ─────────────────────────────────── */

.page-head {
  display: flex; align-items: flex-end; gap: 20px;
  padding: 8px var(--base-unit) 16px;
}
.page-head__copy { flex: 1; min-width: 0; }
.page-head__crumb {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px;
  font-size: 13px; font-weight: 700; color: var(--white-30);
}
.page-head__crumb a { color: var(--brand-60); }
.page-head__crumb a:hover { color: var(--brand); }
.page-head h1 {
  margin: 0 0 8px;
  font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1;
}
.page-head__desc {
  margin: 0; max-width: 900px;
  color: var(--white-50); font-size: 14px; line-height: 1.6;
}
.page-head__desc[data-clamp] {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.page-head__toggle {
  color: var(--brand-60); font-weight: 800; font-size: 13px;
  margin-left: 4px;
}

.sortbox { position: relative; flex: none; }
.sortbox__btn {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px;
  border-radius: 30px;
  background: var(--black-60);
  font-size: 14px; font-weight: 800;
  transition: background .2s var(--ease);
}
.sortbox__btn:hover { background: var(--black-50); }
.sortbox__menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 190px; padding: 6px;
  background: var(--black-60);
  border: 1px solid var(--black-50);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
  z-index: 30;
  display: none;
}
.sortbox__menu[data-open] { display: block; }
.sortbox__menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 700; color: var(--white-50);
}
.sortbox__menu a:hover { background: var(--black-50); color: var(--white-100); }
.sortbox__menu a[aria-current] { color: var(--brand-60); }

/* ── 15. SAYFALAMA ────────────────────────────────────────────────── */

.pagination { margin: 28px 0 0; }
.pagination .nav-links {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; flex-wrap: wrap;
}
.pagination .page-numbers {
  min-width: 40px; height: 40px; padding: 0 14px;
  border-radius: 30px;
  background: var(--black-60);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800;
  transition: background .2s ease;
}
.pagination a.page-numbers:hover { background: var(--black-50); }
.pagination .page-numbers.current { background: var(--brand); }
.pagination .page-numbers.dots { background: none; }

/* ── 16. SEO METNİ ────────────────────────────────────────────────── */

.seo-text {
  margin: 32px var(--base-unit) 0;
  padding: 26px;
  background: var(--black-90);
  border-radius: 16px;
  color: var(--white-50);
  font-size: 14px; line-height: 1.75;
}
.seo-text h2 { margin: 22px 0 10px; font-size: 18px; font-weight: 800; color: var(--white-100); }
.seo-text h2:first-child { margin-top: 0; }
.seo-text h3 { margin: 18px 0 8px; font-size: 15px; font-weight: 800; color: var(--white-100); }
.seo-text p { margin: 0 0 12px; }
.seo-text a { color: var(--brand-60); font-weight: 700; }
.seo-text a:hover { color: var(--brand); }
.seo-text ul { margin: 10px 0 14px; padding-left: 20px; }
.seo-text li { margin-bottom: 6px; }

/* ── 17. BOŞ DURUM ────────────────────────────────────────────────── */

.empty { text-align: center; padding: 60px 20px; }
.empty__ico { font-size: 46px; margin-bottom: 12px; opacity: .5; }
.empty h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.empty p { margin: 0 0 18px; color: var(--white-30); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 8px 16px;
  border-radius: 30px;
  background: var(--brand); color: var(--white-100);
  font-size: 16px; font-weight: 800;
  transition: background .25s ease;
}
.btn:hover { background: var(--brand-80); }

/* ── 18. FOOTER ───────────────────────────────────────────────────── */

/* ── 18. FOOTER — CrazyGames tarzı ince çubuk ───────────────────────── */

.foot {
  margin-left: var(--sidebar-collapsed-w);
  margin-top: 32px;
  padding: 20px 16px;
  border-top: 1px solid var(--black-60);
  transition: margin-left .2s var(--ease);
}
.foot[data-pinned] { margin-left: var(--sidebar-w); }
.foot[data-hidden] { margin-left: 0; }

.foot__bar {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  max-width: 1400px; margin: 0 auto;
}
.foot__rnd, .foot__top {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border-radius: 30px;
  font-size: 14px; font-weight: 800;
  transition: background .15s var(--ease), transform .12s var(--ease);
}
.foot__rnd {
  background: var(--brand); color: #fff;
}
.foot__rnd:hover { background: var(--brand-80); }
.foot__top {
  background: var(--black-70); color: var(--white-60);
}
.foot__top:hover { background: var(--black-50); color: var(--white-100); }
.foot__top svg { transform: rotate(-90deg); }

.foot__copy {
  margin: 14px auto 0; max-width: 1400px;
  text-align: center;
  font-size: 12px; color: var(--white-20);
}

@media (max-width: 640px) {
  .foot__bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .foot__rnd, .foot__top { width: 100%; justify-content: center; }
}

/* ── Sidebar altı — hukuki linkler + sosyal medya ───────────────────── */

.side__links {
  display: flex; flex-direction: column; gap: 2px;
  padding: 4px 4px 8px;
}
.side__links a {
  display: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px; font-weight: 700;
  color: var(--white-30);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.side__links a:hover { background: var(--black-60); color: var(--white-100); }
.side:hover .side__links a,
.side[data-pinned] .side__links a { display: block; }

.side__social {
  display: flex; gap: 8px;
  padding: 4px 6px 12px;
}
.side__social a {
  display: none;
  width: 30px; height: 30px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--black-60); color: var(--white-50);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.side:hover .side__social a,
.side[data-pinned] .side__social a { display: flex; }
.side__social a:hover { background: var(--brand); color: #fff; }

@media (max-width: 800px) {
  .side__links a, .side__social a { display: flex; }
  .side__links a { display: block; }
}

/* ── Kategoriler sayfası (/kategoriler/) ─────────────────────────── */
.kat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 0 var(--base-unit) 20px;
}
.kat-grid__item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--black-80);
  border: 1px solid var(--black-60);
  transition: transform .15s var(--ease), border-color .15s var(--ease);
}
.kat-grid__item:hover { transform: translateY(-2px); border-color: var(--chip-c, var(--brand)); }
.kat-grid__ico {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  color: var(--chip-c, var(--brand-60));
  background: color-mix(in srgb, var(--chip-c, var(--brand)) 16%, transparent);
}
.kat-grid__name { font-weight: 800; display: block; }
.kat-grid__n { display: block; font-size: 12px; color: var(--white-30); margin-top: 2px; }

/* ── 19. DUYARLI ──────────────────────────────────────────────────── */

/* ≤1000px: sidebar drawer olur */
@media (max-width: 1000px) {
  .side {
    width: var(--sidebar-w);
    transform: translateX(-100%);
    transition: transform .2s var(--ease);
    z-index: 13;
  }
  .side:hover { box-shadow: none; }
  .side[data-open] { transform: none; box-shadow: 10px 0 40px rgba(0,0,0,.6); }
  .side .side__label, .side .side__head { opacity: 1; visibility: visible; }

  .main, .foot { margin-left: 0; }
  .main[data-pinned], .foot[data-pinned] { margin-left: 0; }

  /* Sidebar yokken ray tam genişlik kullanabilir */
  :root { --carousel-offset: 0px; }
}

/* ≤800px: arama kutusu ikona dönüşür (CG mobil davranışı) */
@media (max-width: 800px) {
  .hdr__search { display: none; }
  .hdr__search-btn { display: grid; }
  .hdr__right { min-width: 0; gap: 14px; }
  .hdr__logo-pill { display: none; }
}

/* ≤900px: arama tam ekran (mobil davranışı) */
@media (max-width: 900px) {
  .srch {
    padding: 0;
    background: var(--black-100);
    backdrop-filter: none;
  }
  .srch__box {
    max-width: none; height: 100%;
    border: 0; border-radius: 0;
    box-shadow: none;
    background: var(--black-100);
    display: flex; flex-direction: column;
  }
  .srch__bar {
    height: var(--header-height);
    border-bottom: 1px solid var(--black-60);
    flex: none;
  }
  .srch__bar > svg:first-child { display: none; }
  .srch__back { display: grid; }
  .srch__close { display: none; }
  .srch__body { flex: 1; max-height: none; padding: 14px 12px 40px; }
  .srch__grid { grid-template-columns: repeat(2, 1fr); }
  .srch__cats { display: block; }
}

@media (max-width: 640px) {
  :root { --header-height: 56px; }

  .hdr__login { padding: 8px 14px; font-size: 14px; }
  .sec__title { font-size: 18px; }
  .sec__more { margin-left: auto; }
  .page-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .page-head h1 { font-size: 24px; }
  .sortbox { align-self: flex-start; }

  /* Mobilde de desktop'taki 1 büyük + 4 küçük kalıbı korunur:
     büyük kart tam genişlik, ardından 2'şerli küçük çiftler. */
  .rail--hero .rail__track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: var(--carousel-gap);
    padding-inline: var(--base-unit);
  }
  .rail--hero .rail__track > * {
    flex: none;
    width: 100%;
  }
  .rail--hero .rail__track > *:nth-child(5n + 1) {
    grid-row: auto;
    grid-column: 1 / -1;
  }
  .rail--hero .rail__nav { display: none; }

  .foot__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .foot__about { grid-column: 1 / -1; }
  .seo-text { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Geri oku — temel stil, görünürlük yukarıdaki medya sorgusunda ayarlanır */
.srch__back {
  width: 34px; height: 34px;
  place-items: center;
  color: var(--white-50); flex: none;
}
.srch__back:hover { color: var(--white-100); }

/* Arama içindeki kategori listesi — sadece mobilde */
.srch__cats { display: none; margin-top: 24px; }
.srch__cats-head {
  padding: 0 4px 10px;
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--white-30);
}
.srch__cat {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 12px;
  border-radius: 12px;
  font-size: 15px; font-weight: 700;
  color: var(--white-100);
}
.srch__cat:hover, .srch__cat:active { background: var(--black-80); }
.srch__cat-ico { color: var(--brand-60); flex: none; display: flex; }
.srch__cat-n { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--white-30); }
.srch__cat-arrow { color: var(--white-10); flex: none; display: flex; }

/* Arama sonuçları görününce kategori listesi gizlenir */
.srch[data-searching] .srch__cats { display: none; }

/* ══════════════════════════════════════════════════════════════════════
   AŞAMA 3 — Oyun sayfası
   ══════════════════════════════════════════════════════════════════════ */

.game {
  display: grid;
  grid-template-columns: minmax(0, 960px) 336px;
  grid-template-rows: min-content 1fr;
  grid-template-areas: "player side" "content side";
  justify-content: center;
  align-items: start;
  gap: 16px 32px;
  padding: 0 var(--base-unit);
}
.gplayer  { grid-area: player; }
.gcontent { grid-area: content; min-width: 0; }
.gside    {
  grid-area: side;
  position: sticky;
  top: calc(var(--header-height) + 16px);
  align-self: start;
}

/* Mobilde: oynatıcı → Sıradaki oyunlar → açıklama/yorumlar.
   CrazyGames'teki gibi "benzer oyunlar" en üstte, uzun metin ve
   yorumlar en altta kalsın. */
@media (max-width: 1100px) {
  .game { grid-template-columns: minmax(0, 1fr); grid-template-areas: "player" "side" "content"; }
}

/* ── Reklam kutuları ── */

.mk-ad {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background-color: hsla(0, 0%, 100%, .04);
  border: 1px solid hsla(0, 0%, 100%, .08);
}

/* Etiket artık kutunun İÇİNDE değil DIŞINDA — reklamın üstüne binmez */
.mk-adw { position: relative; }
.mk-ad__label {
  position: absolute;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white-30);
  white-space: nowrap;
}

/* 728×90 — 970×250 arası esnek, oynatıcının üstünde, ortalı */
.mk-adw--game-above {
  width: 100%;
  max-width: 970px;
  margin: 0 auto 28px;
}
.mk-adw--game-above .mk-ad {
  width: 100%;
  min-height: 90px;
}
.mk-adw--game-above .mk-ad__label {
  top: 100%; left: 50%;
  margin-top: 6px;
  transform: translateX(-50%);
}

/* 728×90 — etiket kutunun soluna, dikey yazı olarak */
.mk-adw--game-below { display: flex; align-items: center; gap: 10px; }
.mk-adw--game-below .mk-ad { flex: 1 1 auto; }
.mk-adw--game-below .mk-ad__label {
  position: static;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* 300×250 (sağ üst) — etiket kutunun altına, sağ köşeye hizalı */
.mk-adw--game-sidebar-top { margin-bottom: 28px; }
.mk-adw--game-sidebar-top .mk-ad__label {
  top: 100%; right: 0; left: auto;
  margin-top: 6px;
}

/* 300×600 — etiket kutunun altına, ortalı */
.mk-adw--game-below-side .mk-ad__label {
  top: 100%; left: 50%;
  margin-top: 6px;
  transform: translateX(-50%);
}

/* Anasayfa reklamları (970×250 üst banner, 728×90 raylar arası) —
   üstte/altta boşluk yoktu, etiket de altındaki başlığın üzerine
   biniyordu çünkü absolute konumlandığı için kendi yerini ayırmıyordu. */
.mk-adw--home-leaderboard,
.mk-adw--home-inline {
  margin: 20px var(--base-unit) 32px;
}
.mk-adw--home-leaderboard .mk-ad__label,
.mk-adw--home-inline .mk-ad__label {
  top: 100%; left: 0;
  margin-top: 6px;
}

/* Oynatıcı ile reklamlar arasına boşluk; 728×90'ın altındaki içerik
   banner bitince hemen başlar; 300×600 bağımsız bir sütunda, kendi
   yüksekliğinde durur — uzun reklam bitene kadar içerik beklemez
   (CrazyGames kalıbı). */
.gwrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 16px;
  margin-top: 16px;
}
.gcontent > .mk-adw--game-below { margin-bottom: 16px; justify-content: flex-start; }
.gcontent > .mk-adw--game-below .mk-ad {
  flex: 0 1 728px;
  max-width: 728px;
  width: 100%;
  min-height: 90px;
  height: auto;
  flex-wrap: wrap;
}
.gcontent > .mk-adw--game-below .mk-ad > * { max-width: 100%; }
.gwrap .mk-adw--game-below-side .mk-ad { min-height: 600px; }

/* Dar ekranda dikey reklam sığmaz, sadece geniş banner kalır */
@media (max-width: 1040px) {
  .gwrap { grid-template-columns: minmax(0, 1fr); }
  .gwrap .mk-adw--game-below-side { display: none; }
}

/* ── Oynatıcı ── */

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.player:fullscreen { aspect-ratio: auto; border-radius: 0; }

.player__exit {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: calc(env(safe-area-inset-left, 0px) + 12px);
  z-index: 20;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  backdrop-filter: blur(6px);
}
.player__exit[hidden] { display: none; }
.player__exit:hover { background: rgba(0,0,0,.75); }

.player iframe,
.player embed,
.player ruffle-player,
.player .mk-game__html,
.player .mk-game__ruffle {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  border: 0; display: block;
}

/* Oyun açılmadan önceki kapak */
.splash {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center;
  width: 100%; padding: 0; border: 0;
  background: var(--black-90);
  cursor: pointer;
}
.splash__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(24px) brightness(.4);
  transform: scale(1.15);
}
.splash::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(104,66,255,.3), transparent 65%);
}
.splash__in {
  position: relative; z-index: 2;
  display: grid; justify-items: center; gap: 18px;
}
.splash__thumb {
  width: 112px; height: 112px;
  border-radius: 22px;
  object-fit: cover;
  border: 3px solid hsla(0,0%,100%,.14);
  box-shadow: 0 12px 40px rgba(0,0,0,.7);
}
.splash__btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 34px;
  border-radius: 30px;
  background: var(--brand); color: #fff;
  font-size: 17px; font-weight: 800;
  box-shadow: 0 8px 30px rgba(104,66,255,.5);
  transition: background .2s ease, transform .15s ease;
}
.splash:hover .splash__btn { background: var(--brand-80); transform: scale(1.04); }

/* ── Eylem çubuğu (CG: oynatıcının altındaki şerit) ── */

.gbar {
  display: flex; align-items: center; gap: 8px;
  margin-top: 0; padding: 8px 10px;
  background: var(--black-80);
  border-radius: 0 0 16px 16px;
}
.gbar__icon {
  width: 34px; height: 34px; border-radius: 8px;
  object-fit: cover; flex: none;
}
.gbar__name {
  font-size: 15px; font-weight: 800;
  margin: 0 8px 0 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gbar__spacer { flex: 1; }

.gbtn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px;
  border-radius: 8px;
  background: var(--black-60);
  color: var(--white-50);
  font-size: 13px; font-weight: 800;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.gbtn:hover { background: var(--black-50); color: var(--white-100); }
.gbtn[aria-pressed="true"] { background: var(--brand); color: #fff; }
.gbtn:disabled { opacity: .55; cursor: default; }
.gbtn:disabled:hover { background: var(--black-60); color: var(--white-50); }
.gbtn[aria-pressed="true"]:disabled { opacity: 1; background: var(--brand); color: #fff; }
.gbtn--fav[aria-pressed="true"] { background: var(--alert); }
.gbtn--icon { padding: 0; width: 34px; justify-content: center; }

/* ── Bilgi bloğu ── */

.ginfo {
  margin-top: 16px; padding: 20px;
  background: var(--black-90);
  border-radius: 16px;
}

.gcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 13px; font-weight: 700; color: var(--white-30);
}
.gcrumb a { color: var(--brand-60); }
.gcrumb a:hover { color: var(--brand); }

.ginfo h1 {
  margin: 0 0 14px;
  font-size: 28px; font-weight: 800; letter-spacing: -.02em;
}

.gmeta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin-bottom: 18px;
  font-size: 13.5px;
}
.gmeta dt { color: var(--white-30); font-weight: 700; }
.gmeta dd { margin: 0; font-weight: 700; }
.gmeta dd small { color: var(--white-30); font-weight: 600; margin-left: 4px; }

.gtags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.gtag {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px;
  border-radius: 8px;
  background: var(--black-60);
  font-size: 13px; font-weight: 700;
  transition: background .15s var(--ease);
}
.gtag:hover { background: var(--black-50); }
.gtag span { color: var(--white-30); font-weight: 600; }

/* İçerik metni */
.gtext { color: var(--white-50); font-size: 14.5px; line-height: 1.75; }
.gtext h2 { margin: 22px 0 10px; font-size: 19px; font-weight: 800; color: var(--white-100); }
.gtext h3 { margin: 18px 0 8px; font-size: 16px; font-weight: 800; color: var(--white-100); }
.gtext p { margin: 0 0 12px; }
.gtext ul, .gtext ol { margin: 10px 0 14px; padding-left: 20px; }
.gtext li { margin-bottom: 6px; }
.gtext a { color: var(--brand-60); font-weight: 700; }
.gtext strong { color: var(--white-100); }

/* Kontrol tablosu */
.gkeys { display: grid; gap: 6px; margin: 12px 0 18px; }
.gkey {
  display: grid; grid-template-columns: max-content 1fr;
  gap: 12px; align-items: center;
}
.gkey__k {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--black-60);
  border-bottom: 2px solid var(--black-40);
  font-size: 12px; font-weight: 800;
  color: var(--white-100);
  white-space: nowrap;
}
.gkey__v { color: var(--white-50); font-size: 13.5px; }

/* Video */
.gvideo {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0 4px;
  background: #000;
}
.gvideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Sağ sütun ── */

.gside__head {
  margin: 0 0 10px;
  font-size: 17px; font-weight: 800;
}
.gside__list { display: grid; gap: 6px; }

/* ── Benzer oyunlar ── */

.grel { margin-top: 24px; }

/* ── Yorumlar ── */

.gcom { margin-top: 16px; }
.gcom__head {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 16px;
  font-size: 19px; font-weight: 800;
}
.gcom__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 30px;
  background: var(--black-60);
  color: var(--white-50);
  font-size: 12px; font-weight: 800;
}
.gcom__empty { color: var(--white-30); font-size: 14px; margin: 0 0 20px; }

.gcom__list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 16px; }
.gcom__item { display: flex; gap: 12px; }
.gcom__avatar { flex: none; }
.gcom__avatar img { width: 40px; height: 40px; border-radius: 50%; display: block; }
.gcom__body { flex: 1; min-width: 0; }
.gcom__meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.gcom__author { font-weight: 800; font-size: 14px; }
.gcom__date { font-size: 12px; color: var(--white-30); }
.gcom__pending { font-size: 12px; color: var(--warning); margin: 0 0 4px; }
.gcom__text {
  font-size: 14px; line-height: 1.6; color: var(--white-60);
  overflow-wrap: anywhere; word-break: break-word;
}
.gcom__text p { margin: 0 0 8px; }
.gcom__text p:last-child { margin-bottom: 0; }

.gcom__more {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 44px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--black-50);
  color: var(--white-40);
  font-size: 13.5px; font-weight: 700;
  margin-bottom: 24px;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.gcom__more:hover:not(:disabled) { background: var(--black-70); color: var(--white-100); border-color: var(--black-40); }
.gcom__more:disabled { opacity: .6; cursor: default; }
.gcom__more span { color: var(--white-20); font-weight: 700; }

/* ── Yorum formu ── */

.gcom-form { margin-bottom: 28px; }
.gcom-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px;
  background: var(--black-90);
  border-radius: 16px;
}
.gcom-form h3 {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  font-size: 15px; font-weight: 800;
}
.gcom-form__row { grid-column: span 1; margin: 0; }
.gcom-form__row--full { grid-column: 1 / -1; }
.gcom-form input,
.gcom-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--black-50);
  background: var(--black-80);
  color: var(--white-100);
  font-size: 14px;
  resize: vertical;
}
.gcom-form input::placeholder,
.gcom-form textarea::placeholder { color: var(--white-30); }
.gcom-form input:focus,
.gcom-form textarea:focus { outline: none; border-color: var(--brand); }
.gcom-form p.form-submit { grid-column: 1 / -1; margin: 4px 0 0; }
.gcom-form__submit {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 26px;
  border-radius: 10px;
  background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 800;
  transition: background .15s var(--ease);
}
.gcom-form__submit:hover { background: var(--brand-80); }
.gcom-form .comment-notes,
.gcom-form .logged-in-as { grid-column: 1 / -1; font-size: 12.5px; color: var(--white-30); margin: 0 0 6px; }
.gcom-form .comment-notes a,
.gcom-form .logged-in-as a { color: var(--brand-60); }

@media (max-width: 640px) {
  .gcom-form { grid-template-columns: 1fr; padding: 16px; border-radius: 0; }
}

/* ── Duyarlı ── */

@media (max-width: 1100px) {
  .gside { position: static; }
  .gside__list {
    display: grid;
    grid-template-columns: repeat(var(--carousel-columns), minmax(0, 1fr));
    gap: var(--carousel-gap);
  }
}

@media (max-width: 640px) {
  .game { padding: 0; }
  .player { border-radius: 0; aspect-ratio: 4 / 3; }
  .gbar { border-radius: 0; margin-top: 0; }
  .ginfo { border-radius: 0; margin-top: 8px; padding: 16px; }
  .ginfo h1 { font-size: 22px; }
  .gmeta { grid-template-columns: 1fr; gap: 2px 0; }
  .gmeta dt { margin-top: 8px; }
  .gbar__name { display: none; }
  .gbtn span { display: none; }
  .gbtn { padding: 0; width: 34px; justify-content: center; }
  .gbtn--vote span { display: inline; }
  .gbtn--vote { padding: 0 10px; width: auto; }
}
