/* CS 1.6: üstte ince çubuk (ad, harita, kaç kişi, tam ekran, çık), altında oyun (iframe) ya da açılış kartı */

.cs16 { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 0 16px 0; }
.cs-bar { display: flex; align-items: center; gap: 8px; min-height: 32px; color: var(--muted); font-size: 12px; }
.cs-bar img { width: 22px; height: 22px; }
.cs-bar b { color: var(--fg); font-size: 13px; }
.cs-map { padding: 1px 7px; border-radius: 6px; background: var(--raise); }
.cs-count { margin-right: auto; }
.cs-btn { height: 28px; padding: 0 10px; border-radius: 7px; background: var(--raise); color: var(--fg); font-size: 12px; font-weight: 600; transition: background 0.12s, color 0.12s; }
.cs-btn:hover { background: color-mix(in srgb, var(--fg) 9%, var(--raise)); }
.cs-quit:hover { background: color-mix(in srgb, var(--err) 18%, var(--raise)); color: var(--err); }
.cs-btn[hidden] { display: none; }

.cs-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #0b0d10; border: 1px solid var(--line); border-radius: 10px; }
.cs-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs-frame:fullscreen { border: 0; }

.cs-intro {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 24px; color: #c9ccd1; text-align: center;
}
.cs-intro[hidden] { display: none; }
.cs-intro img { width: 64px; height: 64px; }
.cs-intro h2 { margin: 0; color: #f1f1f1; font-size: 18px; }
.cs-intro p { max-width: 420px; margin: 0; color: #9aa0a6; font-size: 13px; }
/* Harita seçimi (5.80): her harita bir kart (radyo düğmesi); seçili olan vurgulu, kaç kişinin oynadığı yeşil */
.cs-maps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; max-width: 560px; margin: 6px 0 2px; }
.cs-maps:empty { display: none; }
.cs-map-card {
  display: grid; align-content: start; gap: 3px; flex: 1 1 220px; max-width: 270px; min-height: 84px; padding: 10px 12px; border: 1px solid #262a31; border-radius: 10px;
  background: #12151a; color: #9aa0a6; font-size: 12px; line-height: 1.4; text-align: left; transition: border-color 0.12s, background 0.12s;
}
.cs-map-card b { color: #f1f1f1; font-size: 14px; }
.cs-map-card:hover { border-color: #3a4049; background: #161a20; }
.cs-map-card.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, #12151a); box-shadow: 0 0 0 1px var(--accent); }
.cs-map-card[data-kind="surf"] b::after { content: "surf"; margin-left: 8px; padding: 1px 6px; border-radius: 5px; background: #1d2a3a; color: #7db7ff; font-size: 10.5px; font-weight: 700; vertical-align: 2px; }
.cs-map-n { color: #5fd08a; font-style: normal; font-weight: 600; }
.cs-map-n[hidden] { display: none; }
.cs-tip { max-width: 520px !important; margin-top: 4px !important; padding: 8px 12px; border-radius: 8px; background: #121a24; color: #9fb8d6 !important; font-size: 12px !important; line-height: 1.5; text-align: left; }
.cs-tip[hidden] { display: none; }
.cs-map[hidden] { display: none; }
.cs-play {
  min-width: 140px; height: 38px; margin-top: 4px; padding: 0 22px; border-radius: 9px; background: var(--accent); color: var(--accent-fg);
  font-size: 14px; font-weight: 800; transition: filter 0.12s, transform 0.1s;
}
.cs-play:hover:not(:disabled) { filter: brightness(1.08); }
.cs-play:active:not(:disabled) { transform: scale(0.97); }
.cs-play:disabled { opacity: 0.45; cursor: not-allowed; }
.cs-intro small { max-width: 420px; color: #8a9097; font-size: 12px; }
.cs-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; max-width: 460px; margin: 8px 0 0; padding: 0; list-style: none; color: #8a9097; font-size: 12px; }
.cs-keys kbd { margin-right: 4px; padding: 1px 6px; border-radius: 5px; background: #1c2026; color: #e8e6e3; font: inherit; font-weight: 700; }

/* Başlık çubuğundaki düğme (Bonfire'ın yanında; kaç kişi oynuyor): tabancanın yeşili */
.cs-tab { border-color: color-mix(in srgb, #7ccf4a 45%, var(--line)); background: color-mix(in srgb, #7ccf4a 10%, transparent); box-shadow: 0 0 14px -5px color-mix(in srgb, #7ccf4a 60%, transparent); }
.cs-tab:hover { border-color: #7ccf4a; box-shadow: 0 0 18px -3px color-mix(in srgb, #7ccf4a 70%, transparent); }
.cs-tab .nt-icon { width: 16px; height: 16px; }
.cs-tab-n {
  min-width: 16px; height: 16px; padding: 0 4px; margin-right: -4px; border-radius: 8px; box-sizing: border-box;
  display: inline-grid; place-items: center; background: #7ccf4a; color: #0d1a06; font-size: 10px; font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.cs-tab-n[hidden] { display: none; }
/* Telefonda başlıkta yer yok ve oyun masaüstü için: sekme gizli (Oyunlar kartından yine açılır) */
@media (max-width: 760px) {
  .titlebar #viewCs { display: none; }
}

/* Oyunlar kartında kaç kişi oynuyor */
.gm-cs-live { color: var(--ok); font-style: normal; font-weight: 600; }
.gm-cs-live[hidden] { display: none; }

@media (max-width: 760px) {
  .cs16 { padding: 0; }
  .cs-bar { padding: 0 10px; }
  .cs-stage { border-radius: 0; border-width: 1px 0 0; }
}
