/* Mobile-first: temel stiller 360px içindir; genişlik arttıkça @media ile genişler */

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--so-yellow);
  outline-offset: 3px;
}

/* ---------- Üst bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 var(--gutter);
  background: var(--so-navy-800); color: #fff;
  border-bottom: 3px solid var(--so-red);
}
.brand { display: flex; align-items: baseline; gap: 6px; flex-shrink: 0; }
.brand-mark { font: 900 22px/1 var(--font-head); letter-spacing: -.02em; color: #fff; }
.brand-mark b { color: var(--so-red); font-weight: 900; }
.brand-sub { font-size: 14px; color: var(--so-navy-800); background: var(--so-green); padding: 2px 6px; border-radius: 3px; }
.search { flex: 1; min-width: 0; }
.search input {
  width: 100%; height: 36px; padding: 0 12px;
  border: 0; border-radius: 18px;
  background: var(--so-navy-700); color: #fff; font-size: 14px;
}
.search input::placeholder { color: #8b93a3; }
.live-pill { display: none; align-items: center; gap: 6px; font-size: 12px; color: #c7ccd6; white-space: nowrap; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--so-green); box-shadow: 0 0 0 3px rgba(133,214,4,.25); }
.icon-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--so-navy-700); color: #fff; flex-shrink: 0; }

.club-strip {
  display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none;
  padding: 0 var(--gutter); height: 38px; align-items: center;
  background: var(--so-blue-900); color: #fff;
  font: 700 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em;
  position: sticky; top: var(--topbar-h); z-index: 39;
}
.club-strip::-webkit-scrollbar { display: none; }
.club-strip a { white-space: nowrap; opacity: .85; }
.club-strip a:hover { opacity: 1; color: var(--so-green); }

/* ---------- Yerleşim ---------- */
.layout { display: block; }
.sidenav { display: none; }
main { padding: 16px var(--gutter) calc(var(--tabbar-h) + 24px); min-width: 0; }

/* ---------- Mobil alt sekme ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--so-navy-800); border-top: 1px solid var(--so-navy-600);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: #9aa1ad; }
.tabbar a span { font-size: 19px; line-height: 1; }
.tabbar a.on { color: #fff; }
.tabbar a.on span { color: var(--so-red); }
.tabbar a:nth-child(n+6) { display: none; }

/* ---------- Kategori çipleri ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 16px; padding: 0 var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.chip.on { background: var(--so-navy-800); color: #fff; border-color: var(--so-navy-800); }
.chip small { color: var(--text-3); font-weight: 500; }

/* ---------- Manşet (öne çıkan) ---------- */
.manset {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: radial-gradient(120% 140% at 85% 10%, var(--c1), var(--c2) 70%);
  color: #fff; padding: 18px; min-height: 230px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.manset::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.65)); }
.manset > * { position: relative; z-index: 1; }
.manset-icon { position: absolute; right: -10px; top: -14px; font-size: 140px; opacity: .9; z-index: 0; transform: rotate(-8deg); }
.manset .kicker { align-self: flex-start; background: var(--so-red); padding: 3px 8px; font: 800 12px/1.2 var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.manset h2 { margin: 10px 0 6px; font-size: 40px; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.manset h2 em { font-style: normal; background: var(--so-yellow); color: var(--so-navy-900); padding: 0 6px; }
.manset p { margin: 0 0 14px; color: #e3e6ec; max-width: 46ch; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border: 0; border-radius: 22px;
  font: 800 16px/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em;
}
.btn-red { background: var(--so-red); color: #fff; }
.btn-red:hover { background: var(--so-red-dark); }
.btn-green { background: var(--so-green); color: var(--so-navy-900); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.manset .btn { align-self: flex-start; }

/* ---------- Günlük görev / seviye ---------- */
.daily { display: grid; gap: 12px; margin: 16px 0; }
.panel { background: var(--surface); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); }
.panel-dark { background: var(--so-navy-800); color: #fff; }
.panel h3 { margin: 0 0 4px; font-size: 22px; }
.panel .muted { color: var(--text-2); font-size: 13px; margin: 0; }
.panel-dark .muted { color: #aab0bb; }
.kicker-sm { font: 800 12px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--so-green); }
.progress { height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; margin: 12px 0 8px; }
.panel:not(.panel-dark) .progress { background: var(--surface-2); }
.progress i { display: block; height: 100%; background: var(--so-green); border-radius: 4px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.day { text-align: center; padding: 8px 0; border-radius: 8px; background: var(--surface-2); font-size: 11px; color: var(--text-2); }
.day b { display: block; font: 800 16px/1.1 var(--font-head); color: var(--text); }
.day.on { background: var(--so-red); color: #fff; }
.day.on b { color: #fff; }
.day.done { background: var(--so-green); color: var(--so-navy-900); }
.cengel-card { display: block; border-top: 4px solid var(--so-yellow); }
.cengel-grid { display: grid; grid-template-columns: repeat(6, 14px); gap: 2px; }
.cengel-grid i { width: 14px; height: 14px; border: 1px solid var(--line); background: var(--surface); }
.cengel-grid i:nth-child(3n+1) { background: var(--so-yellow); border-color: var(--so-yellow); }
.cengel-grid i:nth-child(7), .cengel-grid i:nth-child(14) { background: var(--so-navy-800); border-color: var(--so-navy-800); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- Raflar & kartlar ---------- */
.shelf { margin: 26px 0; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; border-bottom: 2px solid var(--text); padding-bottom: 6px; }
.shelf-head h2 { margin: 0; font-size: 24px; position: relative; padding-left: 12px; }
.shelf-head h2::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 5px; background: var(--so-red); transform: skewX(-12deg); }
.shelf-head a { font-size: 13px; font-weight: 600; color: var(--so-red); }
.shelf-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 46%;
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px;
}
.shelf-row::-webkit-scrollbar { display: none; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.gcard { position: relative; scroll-snap-align: start; min-width: 0; }
.gcard-link { display: block; }
.cover {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden;
  background: radial-gradient(110% 120% at 80% 15%, var(--c1), var(--c2) 75%);
  display: flex; align-items: flex-end; padding: 10px;
}
.cover::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px); }
.cover-icon { position: absolute; right: 8px; top: 4px; font-size: 54px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.cover-title { position: relative; color: #fff; font-size: 21px; text-shadow: 0 2px 0 rgba(0,0,0,.35); max-width: 80%; }
.cover-big { aspect-ratio: 16 / 9; }
.cover-big .cover-icon { font-size: 110px; right: 20px; top: 10px; }
.cover-big .cover-title { font-size: 40px; }
.gcard:hover .cover { transform: translateY(-2px); transition: transform .15s; }
.gcard-info { padding: 8px 2px 0; }
.gcard-info h3 { margin: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard-info p { margin: 2px 0 0; font-size: 12px; color: var(--text-3); }
.badge { position: absolute; left: 8px; top: 8px; padding: 3px 7px; border-radius: 4px; font: 800 11px/1 var(--font-head); text-transform: uppercase; letter-spacing: .05em; }
.badge.red { background: var(--so-red); color: #fff; }
.badge.green { background: var(--so-green); color: var(--so-navy-900); }
.fav {
  position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.45); color: #fff; font-size: 14px; backdrop-filter: blur(4px);
}
.fav.on { background: var(--so-red); }

/* ---------- Sponsorlu kart ---------- */
.sponsored { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.sponsored .cover { aspect-ratio: 1; }
.sponsored .cover-title { display: none; }

/* ---------- Reklam alanları ---------- */
.ad-slot { position: relative; margin: 18px 0; }
.ad-label { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); text-align: center; margin-bottom: 4px; }
.ad-body { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.ad-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 100px; border-radius: var(--r-md);
  background: repeating-linear-gradient(45deg, var(--surface-2) 0 10px, var(--surface) 10px 20px);
  border: 1px dashed var(--line); color: var(--text-2); font-size: 13px; font-weight: 600; text-align: center;
}
.ad-placeholder small { font-weight: 400; color: var(--text-3); }
.ad-placeholder.house { color: var(--so-red); }
.ad-creative { min-height: 100px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.ad-creative strong { font-size: 26px; }
.ad-creative span { font-weight: 700; font-size: 13px; padding: 6px 12px; border: 2px solid currentColor; border-radius: 16px; white-space: nowrap; }

/* ---------- Oyun sayfası ---------- */
.game-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.game-main, .side-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; align-content: start; }
.stage-box { margin: 0 calc(var(--gutter) * -1); }
.stage {
  position: relative; background: #000; overflow: hidden;
  aspect-ratio: 16 / 10; width: 100%;
}
/* Mobile-first: telefonda her oyun dikey sahnede açılır; yatay sahne tablet ve masaüstü içindir */
.stage, .stage.portrait { aspect-ratio: 375 / 580; max-height: calc(100dvh - var(--topbar-h) - var(--tabbar-h) - 40px); margin: 0 auto; }
.rotate-hint { display: none; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 16px; z-index: 2;
  background: radial-gradient(110% 120% at 80% 15%, var(--c1), var(--c2) 75%); color: #fff; }
.stage-cover .cover-icon { position: static; font-size: 76px; }
.stage-cover h1, .stage-cover .stage-title { display: block; margin: 0; font-size: 38px; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; }
.stage-cover p { margin: 0; color: #dfe3ea; font-size: 13px; }
.rotate-hint { font-size: 12px; color: #fff; background: rgba(0,0,0,.4); padding: 4px 10px; border-radius: 12px; }
.stage-toolbar { display: flex; gap: 8px; padding: 10px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tool { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; }
.tool.on { background: var(--so-red); border-color: var(--so-red); color: #fff; }
.tool.wa { background: #25d366; border-color: #25d366; color: #06301a; }

.interstitial { position: absolute; inset: 0; z-index: 5; background: rgba(15,18,24,.96); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; }
.interstitial .ad-placeholder { width: min(320px, 100%); min-height: 250px; color: #c7ccd6; background: repeating-linear-gradient(45deg, #1e2330 0 10px, #151820 10px 20px); border-color: #2b333f; }
.interstitial .ad-creative { width: min(320px, 100%); min-height: 250px; flex-direction: column; justify-content: center; text-align: center; }

.game-head .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.tag { font: 800 12px/1 var(--font-head); text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 4px; background: var(--so-navy-800); color: #fff; }
.tag.green { background: var(--so-green); color: var(--so-navy-900); }
.game-head h1 { margin: 0; font-size: 36px; }
.game-head p { margin: 6px 0 0; color: var(--text-2); }
.info-block { background: var(--surface); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); }
.info-block h2 { margin: 0 0 8px; font-size: 22px; }
.info-block p { margin: 0 0 8px; color: var(--text-2); }
.info-block ul { margin: 0; padding-left: 18px; color: var(--text-2); }
.lb { list-style: none; margin: 0; padding: 0; }
.lb li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lb li b { font-family: var(--font-head); font-size: 18px; color: var(--so-red); }
.tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.tabs button { height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 700; }
.tabs button.on { background: var(--so-navy-800); color: #fff; border-color: var(--so-navy-800); }

/* ---------- Liste sayfası ---------- */
.page-title { margin: 4px 0 14px; font-size: 34px; }
.toolbar { display: flex; gap: 8px; margin-bottom: 14px; }
.toolbar select { height: 36px; padding: 0 10px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.empty { padding: 40px 0; text-align: center; color: var(--text-2); }

footer.foot { margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .shelf-row { grid-auto-columns: 30%; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .daily { grid-template-columns: 1.3fr 1fr; }
  .manset { min-height: 300px; padding: 28px; }
  .manset h2 { font-size: 58px; }
  .manset-icon { font-size: 220px; right: 10px; }
  .live-pill { display: inline-flex; }
  .stage-box { margin: 0; }
  .stage { aspect-ratio: 16 / 10; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .stage.portrait { aspect-ratio: 400 / 620; width: min(100%, calc((100dvh - 200px) * 400 / 620)); }
  .stage-toolbar { border-radius: 0 0 var(--r-lg) var(--r-lg); }
}

/* ---------- Masaüstü ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 24px; }
  .tabbar { display: none; }
  main { padding-bottom: 40px; }
  .layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
  .sidenav {
    display: block; position: sticky; top: calc(var(--topbar-h) + 38px); align-self: start;
    height: calc(100dvh - var(--topbar-h) - 38px); overflow-y: auto;
    padding: 16px 12px; border-right: 1px solid var(--line); background: var(--surface);
  }
  .sidenav nav { display: grid; gap: 2px; }
  .sidenav nav a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
  .sidenav nav a span { width: 20px; text-align: center; }
  .sidenav nav a:hover { background: var(--surface-2); color: var(--text); }
  .sidenav nav a.on { background: var(--so-navy-800); color: #fff; }
  .sidenav nav a.on span { color: var(--so-red); }
  .sidenav h4 { margin: 18px 10px 8px; font-size: 13px; color: var(--text-3); }
  .side-admin { display: block; margin: 18px 10px 0; font-size: 13px; font-weight: 700; color: var(--so-red); }
  .search { max-width: 420px; }
  .shelf-row { grid-auto-columns: calc((100% - 48px) / 5); margin: 0; padding: 2px 0 6px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .daily { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .game-wrap { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .chips { margin: 0 0 16px; padding: 0; }
}
@media (min-width: 1440px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  main { max-width: 1400px; }
}

/* Tam ekran / sinema modu */
.stage:fullscreen { aspect-ratio: auto; max-height: none; }
body.theater .game-wrap { grid-template-columns: 1fr; }
body.theater .side-col { display: none; }

/* ---------- SEO / AEO: kırıntı yolu, SSS, tüm oyunlar listesi ---------- */
.site-intro { margin: 0 0 14px; color: var(--text-2); font-size: 14px; max-width: 78ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; font-size: 12px; color: var(--text-3); }
.crumbs a { color: var(--so-red); font-weight: 600; }
.faq { margin: 0; }
.faq dt { font-weight: 700; margin-top: 12px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 4px 0 0; color: var(--text-2); }
.allgames { margin: 30px 0 0; }
.allgames-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.allgames-list li { border-bottom: 1px solid var(--line); padding-bottom: 8px; font-size: 14px; }
.allgames-list a { color: var(--text); }
.allgames-list a b { color: var(--so-navy-800); }
:root[data-theme="dark"] .allgames-list a b { color: var(--text); }
