/* Şehir (tasarım C1, C4): sahne, bina parıltısı ve etiketleri, Fx katmanı, bina listesi, pencereler, Kamp Ateşi paneli.
   karargah.css'in üstüne yüklenir (panel, düğme, çip ve rozet görünüşü oradan). */

/* Zemin koyu taş: şehir resmi zemine konmaz (sahnenin arkasında ikinci bir şehir görünüyordu) */
body.sehir {
  background:
    linear-gradient(#120c08e8, #120c08f4),
    var(--k-tas, none) 0 0 / 512px,
    #120c08;
}

.s-page {
  max-width: 1600px;
}

.s-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Etkinlik afişi (Bugün kartının başında) ---- */

.s-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  padding: 8px 14px;
  border-radius: var(--radius);
  color: #fff3d6;
  background: linear-gradient(90deg, #6a140cdd, #a8261add 45%, #6a140cdd);
  border: 1px solid var(--bronze-light);
  box-shadow: 0 0 0 1px #000, 0 0 18px #e0743a66;
}

.s-banner b {
  font-family: var(--ui);
  text-shadow: 0 1px 2px #000;
}

.s-banner span {
  font-size: 13px;
  color: #ffe0b8;
  overflow-wrap: anywhere;
}

/* ---- Sahne: resim ve çokgenler SVG'de (konumu ve boyu sehir.js layoutScene: cover, alttan kırpılır), üstünde Fx
   canvas'ı ve etiketler ---- */

.s-scene {
  container-type: inline-size;
  margin-top: 12px;
}

.s-stage {
  position: relative;
  width: 100%;
  height: calc(100cqw / 1.75);
  /* Ekranın kalanına sığar (--s-top: sahnenin sayfadaki üstü, sehir.js); oran 16:10 ile 2,1:1 arasında kalır:
     binalar kırpmanın güvenli bandında (data/sehir.js) */
  height: clamp(calc(100cqw / 2.1), calc(100dvh - var(--s-top, 150px) - 14px), calc(100cqw / 1.6));
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid var(--bronze);
  background: #1b2412;
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #f4d88a2e, 0 14px 40px #000c;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.s-svg,
.s-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Satır içi left/top/width/height (layoutScene) kutuyu belirler */
.s-svg {
  right: auto;
  bottom: auto;
}

/* Parıltı: binanın kesiği, filtreyle parlatılmış ve altın haleli; kapalıyken çizilmez (filtre maliyeti yok) */
.s-glow {
  opacity: 0;
  visibility: hidden;
  filter: url(#s-glowf);
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}

.s-b.on .s-glow {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.18s ease;
}

.s-poly {
  fill: transparent;
  stroke: none;
}

/* Kesik yoksa çokgen parlar */
.s-b.noglow.on .s-poly {
  fill: #ffd27a22;
  stroke: #ffd27a;
  stroke-width: 3;
  stroke-linejoin: round;
}

.s-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Bina etiketi: her zaman binanın adı (ikonlu plaka); yapılacak iş, davet, uyarı ya da kilit varsa plakanın altında
   durum satırı (.s-do, sehir.js infoOf do); canlı ayrıntı üzerine gelince ya da odakta plakanın üstünde açılan balonda
   (sehir.js updateTags) */
.s-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  pointer-events: auto;
  cursor: pointer;
}

.s-tag:focus-visible {
  outline: none;
}

.s-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 6px;
  border-radius: var(--r-sm);
  font: 700 12px/1.3 var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f2e6c8;
  white-space: nowrap;
  text-shadow: 0 1px 2px #000;
  background: linear-gradient(#2c2016f0, #140d08f0);
  border: 1px solid #6e5430;
  box-shadow: 0 0 0 1px #000, 0 3px 8px #0009;
  transition: border-color var(--t-hover), box-shadow var(--t-hover), color var(--t-hover);
}

.s-chip > .ic {
  width: 16px;
  height: 16px;
  color: var(--gold-soft);
  filter: drop-shadow(0 1px 1px #000);
}

.s-name {
  font-weight: inherit;
}

.s-short {
  display: none;
}

.s-tag.on .s-chip {
  color: #fff6d8;
  border-color: var(--bronze-light);
  box-shadow: 0 0 0 1px #000, 0 0 14px #f4d88a99, 0 3px 8px #0009;
}

.s-tag:focus-visible .s-chip {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

/* Fare ya da dokunmayla kapatılan pencere odağı etikete döndürünce halka yanmasın (sehir.js setInput) */
.s-pointer .s-tag:focus-visible .s-chip {
  outline: none;
}

/* Henüz açılmadı (Gözcü Kulesi): soluk, durum satırı yok */
.s-tag.soon:not(.on) .s-chip {
  color: #b9ad98;
  border-color: #4a3a26;
}

.s-tag.soon:not(.on) .s-chip > .ic {
  color: var(--muted);
}

/* Durum satırı: plakanın hemen altında, yalnız yapılacak iş, davet ya da engel varsa (sehir.js infoOf do). Plaka
   yerinden oynamasın diye akış dışında; çakışma denetimi ikisini birlikte ölçer (sehir.js tagRect). Komşu plakaya
   biniyorsa yana kayar (--do-dx), yetmezse iki satıra sarılır (.wrap; sehir.js fitLines). Durumlar: hazır (altın; en
   çok iki bina), uyarı (kehribar, ünlem), kilitli (kilit ve ne yapınca açılacağı; ceza gibi görünmesin diye sönük
   değil, nötr), davet ve fazla hazır (nötr), yakında (soluk plaka, satır yok) */
.s-do {
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: var(--r-sm);
  font: 700 11.5px/1.35 var(--ui);
  white-space: nowrap;
  text-shadow: 0 1px 2px #000;
  transform: translateX(calc(-50% + var(--do-dx, 0px)));
  box-shadow: 0 0 0 1px #000, 0 2px 6px #0009;
}

.s-tag.wrap .s-do {
  width: max-content;
  max-width: 120px;
  white-space: normal;
  text-align: center;
}

.s-do[hidden] {
  display: none;
}

.s-do > .ic {
  width: 12px;
  height: 12px;
}

.s-tag.st-ready .s-chip {
  border-color: #c99a40;
}

.s-tag.st-ready .s-do {
  color: #2a1804;
  text-shadow: none;
  background: linear-gradient(#ffe9a8, #e0b04a);
}

.s-tag.st-warn .s-chip {
  border-color: #f08a3c;
}

.s-tag.st-warn .s-do {
  color: #ffe2c8;
  background: linear-gradient(#7a3a12, #4a2008);
  border: 1px solid #f08a3c;
}

.s-tag.st-warn .s-do > .ic {
  color: #ffb36b;
}

.s-tag:is(.st-lock, .st-soft) .s-do {
  color: #e6dcc8;
  background: linear-gradient(#2c2016f0, #140d08f0);
  border: 1px solid #6e5430;
}

.s-tag.st-lock .s-do > .ic {
  color: var(--gold-soft);
}

/* Bugün kartının önerdiği iş bu binada: satırın çevresinde yavaşça atan halka (aynı anda en çok bir bina). Halka her
   genişlikte aynı birkaç piksel dışarı açılır, komşu plakalara uzanmaz */
.s-tag.next .s-do::after {
  --ping: #f6d070;
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 1px var(--ping);
  opacity: 0;
  animation: s-ping 2.6s ease-out infinite;
}

.s-tag.st-warn.next .s-do::after {
  --ping: #f08a3c;
}

@keyframes s-ping {
  0% {
    opacity: 0.9;
    box-shadow: 0 0 0 1px var(--ping);
  }
  60%,
  100% {
    opacity: 0;
    box-shadow: 0 0 0 7px var(--ping);
  }
}

/* Ayrıntı balonu: plakanın üstünde, üzerine gelince ya da odakta */
.s-info {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  padding: 5px 11px;
  border-radius: var(--r-sm);
  font: 600 13px/1.35 var(--ui);
  white-space: nowrap;
  color: #f4e8cc;
  text-shadow: 0 1px 2px #000;
  background: linear-gradient(#3a2814f5, #1a1009f5);
  border: 1px solid var(--bronze-light);
  box-shadow: 0 0 0 1px #000, 0 6px 16px #000b;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity var(--t-hover), transform var(--t-hover);
  pointer-events: none;
}

.s-tag.on .s-info {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Açık etiketin balonu komşu plakaların üstünde */
.s-tag.on {
  z-index: 1;
}

/* Sahnenin üst kenarına sığmayan balon plakanın altında (sehir.js fitTags); durum satırı varsa onun da altında */
.s-tag.flip .s-info {
  top: calc(100% + 6px);
  bottom: auto;
  transform: translate(-50%, -4px);
}

.s-tag.flip.has-do .s-info {
  top: calc(100% + 30px);
}

.s-tag.flip.has-do.wrap .s-info {
  top: calc(100% + 46px);
}

.s-tag.flip.on .s-info {
  transform: translate(-50%, 0);
}

/* Komşu plakayla çakışan etiket kısa adla (sehir.js fitTags) */
.s-tag.tight .s-full {
  display: none;
}

.s-tag.tight .s-short {
  display: inline;
}

/* Karargahın seviye çubuğu: plakanın alt kenarında ince şerit */
.s-xp {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: -1px;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  background: #000c;
}

.s-xp span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #b07a22, #f6d070);
}

/* Sahne resmi inip çözülene kadar resim, parıltı, Fx ve etiketler gizli (sehir.js sceneReady); sonra resim yumuşakça
   oturur, etiketler sırayla belirir */
.s-stage:not(.ready) :is(.s-svg, .s-fx, .s-tags) {
  opacity: 0;
}

.s-stage:not(.ready) .s-tags {
  visibility: hidden;
}

.s-stage.ready .s-svg {
  animation: s-settle 0.7s ease-out both;
}

.s-stage.ready .s-fx {
  animation: s-fade 0.7s ease-out 0.2s both;
}

.s-stage.ready .s-tag {
  animation: s-tag-in 0.35s ease-out both;
  animation-delay: calc(0.3s + var(--i, 0) * 0.06s);
}

@keyframes s-settle {
  from {
    opacity: 0;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes s-fade {
  from {
    opacity: 0;
  }
}

@keyframes s-tag-in {
  from {
    opacity: 0;
    translate: 0 6px;
  }
}

/* Dar sahnede plaka kısa adla */
@container (max-width: 900px) {
  .s-tag .s-full {
    display: none;
  }

  .s-tag .s-short {
    display: inline;
  }

  .s-chip {
    font-size: 11px;
    padding: 2px 8px 2px 5px;
  }

  .s-chip > .ic {
    width: 14px;
    height: 14px;
  }

  .s-info {
    font-size: 12px;
  }

  .s-do {
    padding: 0 6px;
    font-size: 10.5px;
  }
}

/* ---- Bina listesi: sahne yoksa her genişlikte, varsa 560 px altında ---- */

.s-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.s-bld {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px 14px;
  text-align: left;
  text-decoration: none;
  color: #f2e6c8;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #00000030, #00000090),
    var(--k-deri, linear-gradient(#2c2117, #18110b));
  background-size: auto, cover;
  border: 2px solid var(--bronze);
  box-shadow: 0 0 0 1px #000, inset 0 0 30px #000a, 0 6px 16px #000a;
}

.s-bld:hover:not(:disabled) {
  filter: brightness(1.12);
}

.s-bld:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

.s-bld > span {
  flex: 1;
  min-width: 0;
}

.s-ico {
  font-style: normal;
  font-size: 30px;
  line-height: 1;
  color: var(--gold-soft);
  filter: drop-shadow(0 2px 2px #000);
}

.s-bld b {
  display: block;
  font-family: var(--ui);
  font-size: 17px;
  color: #ffe9b0;
  text-shadow: 0 1px 2px #000;
}

.s-bld small {
  display: block;
  font-size: 13px;
  color: #c9b48a;
  overflow-wrap: anywhere;
}

.s-bld.soon {
  opacity: 0.7;
}

/* Sağdaki 'Yakında' ve ayrıntının altındaki durum satırı (.s-bdo; sahnedeki etiketle aynı tonlar) */
.s-bld em {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  color: #c9b48a;
  border: 1px solid #8a6a3a;
  border-radius: var(--r-sm);
}

.s-bld em > .ic {
  width: 13px;
  height: 13px;
}

/* Durum satırı ad ve ayrıntının altında: dar telefonda ad sütununu daraltmasın */
.s-bld .s-bdo {
  margin-top: 5px;
  white-space: normal;
}

.s-bld em.st-ready {
  font-weight: 700;
  color: #2a1804;
  background: linear-gradient(#ffe9a8, #e0b04a);
  border-color: #000;
}

.s-bld em.st-warn {
  color: #ffe2c8;
  background: #4a2008;
  border-color: #f08a3c;
}

.s-bld em.st-warn > .ic {
  color: #ffb36b;
}

.s-bld em.st-lock > .ic {
  color: var(--gold-soft);
}

@media (min-width: 561px) {
  .s-page.has-scene .s-list {
    display: none;
  }
}

/* ---- Bugün kartı (sehir.js todayCard): etkinlik afişi, sıradaki adım, ses çipi, günlük sayaçlar ---- */

.s-today {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 16px 14px;
  border-radius: var(--radius);
  color: #f2e6c8;
  background: linear-gradient(#21160ded, #0d0805f2);
  border: 1px solid var(--bronze);
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 #ffffff17, 0 14px 36px #000c;
}

/* Başlık solda, ses çipi sağda */
.s-today-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
}

.s-today-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.s-today h2 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.s-today p {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 1px 2px #000;
  overflow-wrap: anywhere;
}

.s-go {
  flex: none;
}

.s-today .k-status {
  margin: 0;
}

.s-today .k-voice {
  padding: 3px 12px 3px 9px;
  font-size: 12.5px;
}

/* Kartta ses çipinin kısa metni: kazanç sayaçları zaten altta (tam cümle üzerine gelince) */
.s-today .k-voice .nav-full {
  display: none;
}

.s-today .k-voice .nav-short {
  display: inline;
}

.s-meters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 8px 10px;
}

/* Ad üstte, altında çubuk ve sayı */
.s-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 8px;
  min-width: 0;
}

.s-meter > span {
  grid-column: 1 / -1;
  font-size: 11.5px;
  color: #c9b48a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s-meter > b {
  font-size: 13px;
  color: #ffe9b0;
}

.s-meter small {
  font-weight: 600;
  color: #a8956c;
}

.s-mbar {
  display: block;
  height: 4px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #0009;
  box-shadow: inset 0 0 0 1px #f4d88a26;
}

.s-mbar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #b07a22, #f6d070);
}

.s-meter.full b {
  color: #9be3a8;
}

.s-meter.full .s-mbar span {
  background: linear-gradient(90deg, #2f8a4a, #6fd38c);
}

/* ---- Tam ekran şehir (sahne varken, 561 px ve üstü): sahne bütün pencereyi kaplar, kutu ve çerçeve yok. Üst çubuk
   sahnenin üstünde koyu bir şerit; en üstteki etiket şeridin altında kalsın diye resim gerekirse aşağı kayar (sehir.js
   layoutScene). Bugün kartı 1000 px'ten genişte sahnenin altındaki çayırın üstünde, daha darda sahnenin altında. ---- */

@media (min-width: 561px) {
  /* Bugün kartı (iskelette sahneden önce) burada sahnenin altına iner */
  .s-page.has-scene {
    display: flex;
    flex-direction: column;
    max-width: none;
    padding: 0;
  }

  .s-page.has-scene #s-today {
    order: 1;
  }

  .s-page.has-scene .s-hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 10px 16px 28px;
    background: linear-gradient(#0b0705f5, #0b0705e0 55%, #0b070500);
    pointer-events: none;
  }

  /* Şeridin boş yeri ve alttaki geçişi binaların üzerine gelmeyi engellemesin */
  .s-page.has-scene .s-hud .nav {
    pointer-events: none;
  }

  .s-page.has-scene .s-hud .nav > * {
    pointer-events: auto;
  }

  .s-page.has-scene .s-scene {
    margin-top: 0;
  }

  /* Boy pencere genişliğinden (100vw): kaydırma çubuğu gelip gidince boy değişip çubuğu yeniden getirmesin. Resim
     alttan kırpıldığı için en geniş oran 2,18 (binaların dibi %78'de görünür kalır). Zemin üst çubuğun rengi: resim
     aşağı kayınca açılan şerit çubuğun altında görünmez */
  .s-page.has-scene .s-stage {
    height: clamp(calc(100vw / 2.18), 100dvh, calc(100vw / 1.6));
    border: 0;
    border-radius: 0;
    background: #0b0705;
    box-shadow: none;
  }

  /* Pencere sahneden uzun: sahnenin altı sert bir kenar yerine koyu zemine kararır */
  .s-page.has-scene .s-stage.s-fade::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(#120c0800, #120c08b0 60%, #120c08);
    pointer-events: none;
  }

  .s-page.has-scene .s-today {
    margin: 12px 16px 16px;
  }
}

/* Dar tam ekranda cüzdan tek satır kalsın (kaynak adları üzerine gelince): üst çubuk üç satıra çıkıp sahneyi
   aşağı itmesin */
@media (min-width: 561px) and (max-width: 860px) {
  .s-page.has-scene .s-hud .k-chip {
    padding: 4px 10px;
  }

  .s-page.has-scene .s-hud .k-chip em {
    display: none;
  }
}

@media (min-width: 1000px) {
  /* Kart sahnenin altında (sahne boyu .s-stage ile aynı formül): pencere sahneden uzunsa kart pencerenin dibine
     değil sahnenin dibine oturur, arada boş koyu şerit kalmaz */
  .s-page.has-scene {
    min-height: clamp(calc(100vw / 2.18), 100dvh, calc(100vw / 1.6));
  }

  .s-page.has-scene .s-today {
    position: absolute;
    left: 50%;
    /* Sahnenin dibi; sahne pencereden uzunsa (çok geniş ve kısa pencere) yine pencerenin içinde */
    top: calc(min(100dvh, clamp(calc(100vw / 2.18), 100dvh, calc(100vw / 1.6))) - 16px);
    z-index: 2;
    /* İki yandaki binanın arasına sığacak genişlik (sehir.js fitCard) */
    width: min(var(--s-cardw, 660px), calc(100% - 32px));
    margin: 0;
    transform: translate(-50%, -100%);
    background: linear-gradient(#21160dd9, #0d0805e6);
    backdrop-filter: blur(4px);
  }

  /* Yüzen kart binaların arasındaki boşluğa sığsın: biraz sıkı */
  .s-page.has-scene .s-today {
    gap: 8px;
    padding: 10px 14px 12px;
  }

  .s-page.has-scene .s-today p {
    font-size: 15px;
  }
}

/* ---- Pencere (Demirci, Pazar, Hazine, Kamp Ateşi, Gözcü Kulesi); eşya kartı (gear-panels.js) bunun da üstünde açılır.
   Başlık yerinde durur, yalnız gövde kayar: Pazar'ın yapışkan vitrini başlığın altına girmez. ---- */

.s-panel {
  width: min(1120px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
  color: inherit;
  border: 2px solid var(--bronze);
  border-radius: var(--radius);
  background: #140d08;
  box-shadow: 0 0 0 1px #000, 0 20px 60px #000;
}

.s-panel[open] {
  display: flex;
  flex-direction: column;
}

.s-panel::backdrop {
  background: #07050bcc;
}

.s-phead {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(#2c2016, #140d08);
  border-bottom: 1px solid #8a6a3a;
}

.s-phead > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  min-width: 0;
}

.s-phead h2 {
  font-size: 20px;
}

.s-phead small {
  font-size: 13px;
  color: #c9b48a;
}

.s-phead .k-x {
  position: static;
  flex: none;
}

.s-pbody {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px;
}

/* Pazar ve Hazine panelinin kendi başlığı pencere başlığıyla aynı: pencerede gizli, alt bilgisi başlık çubuğunda */
.s-pbody .k-shop > h2,
.s-pbody .k-chestpanel > h2 {
  display: none;
}

/* ---- Kamp Ateşi ödülleri (Hazine ve Kamp Ateşi pencereleri; ui/gear-tabs.js) ---- */

.k-vault .k-campvault {
  grid-column: 1 / -1;
}

.k-camprewards {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.k-camprow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'tier state'
    'gift state';
  align-items: center;
  gap: 2px 10px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: #0006;
  box-shadow: inset 0 0 0 1px #f4d88a22;
  opacity: 0.72;
}

.k-camprow.on {
  opacity: 1;
}

.k-camprow.ready {
  box-shadow: inset 0 0 0 1px var(--bronze-light), 0 0 12px #f4d88a44;
}

/* Ödül alınınca odak satıra taşınır (sehir.js campFocus) */
.k-camprow:focus {
  outline: none;
}

.k-camprow:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

.k-camptier {
  grid-area: tier;
  font-family: var(--ui);
  font-size: 14px;
  color: #ffe08a;
}

.k-campgift {
  grid-area: gift;
  font-size: 13px;
  color: #efe3c4;
  overflow-wrap: anywhere;
}

.k-camprow > :last-child {
  grid-area: state;
  justify-self: end;
}

/* ---- Kamp Ateşi penceresi ---- */

.s-camp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.s-col {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.s-goalhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.s-goalhead b {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.1;
  color: #ffe9b0;
  text-shadow: 0 1px 3px #000;
}

.s-goalhead span {
  font-size: 13px;
  color: #c9b48a;
}

.s-goalbar {
  position: relative;
  margin: 14px 14px 34px;
}

.s-goalbar .k-bar {
  height: 14px;
}

.s-mark {
  position: absolute;
  top: -5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  font-style: normal;
}

.s-mark b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: var(--ui);
  font-size: 12px;
  color: #c9b48a;
  background: #1a120b;
  border: 2px solid #8a6a3a;
}

.s-mark.on b {
  color: #2a1606;
  background: radial-gradient(circle at 35% 30%, #fff1b0, #e0b04a 60%, #a87420);
  border-color: var(--bronze-light);
  box-shadow: 0 0 10px #f4d88a;
}

.s-mark small {
  margin-top: 2px;
  font-size: 12px;
  color: #c9b48a;
  white-space: nowrap;
}

.s-bonus {
  margin-top: 0;
}

.s-camp .k-sub {
  margin-top: 14px;
}

.s-channel + .s-channel {
  margin-top: 14px;
}

.s-chhead {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s-chhead b {
  flex: 1;
  min-width: 0;
  color: #ffe08a;
  overflow-wrap: anywhere;
}

.s-chhead small {
  font-size: 12px;
  color: #c9b48a;
}

.s-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.s-person {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  background: #0005;
  box-shadow: inset 0 0 0 1px #f4d88a22;
}

.s-person.me {
  box-shadow: inset 0 0 0 1px var(--bronze-light);
}

.s-person > i {
  font-style: normal;
  font-size: 20px;
  color: var(--gold-soft);
}

.s-person > span {
  min-width: 0;
}

.s-person b {
  margin-right: 6px;
  color: #ffe9b0;
  overflow-wrap: anywhere;
}

.s-person small {
  display: block;
  font-size: 12px;
  color: #c9b48a;
}

.s-titlebadge {
  display: inline-block;
  padding: 0 7px;
  font-size: 12px;
  font-style: normal;
  color: #ffe08a;
  border: 1px solid var(--gold);
  border-radius: var(--r-sm);
  background: #4a311266;
}

.s-anon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  font-size: 13px;
  color: #c9b48a;
  border: 1px dashed #8a6a3a;
  border-radius: var(--r-sm);
}

.s-hiddench {
  margin: 12px 0 0;
  font-size: 13px;
  color: #c9b48a;
}

.s-top5 {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s-top;
}

.s-top5 li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  background: #0005;
  counter-increment: s-top;
}

.s-top5 li::before {
  content: counter(s-top);
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: var(--ui);
  font-weight: 800;
  font-size: 13px;
  color: #2a1606;
  background: linear-gradient(#fff1b0, #e0b04a 60%, #a87420);
}

.s-top5 li.me {
  box-shadow: inset 0 0 0 1px var(--bronze-light);
}

.s-top5 b {
  flex: 1;
  min-width: 0;
  color: #ffe9b0;
  overflow-wrap: anywhere;
}

.s-top5 li.anon b {
  font-style: italic;
  font-weight: 500;
  color: #c9b48a;
}

.s-top5 span {
  font-size: 13px;
  color: #c9b48a;
  white-space: nowrap;
}

.s-events,
.s-feed {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.s-events li {
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: #0005;
}

.s-events li.live {
  box-shadow: inset 0 0 0 1px #f08a3c;
}

.s-events b {
  color: #ffe08a;
}

.s-events small {
  display: block;
  font-size: 12.5px;
  color: #c9b48a;
  overflow-wrap: anywhere;
}

.s-feed li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  font-size: 13.5px;
  border-bottom: 1px solid #f4d88a1a;
}

.s-feed li:last-child {
  border-bottom: 0;
}

.s-feed i {
  font-style: normal;
  color: var(--gold-soft);
}

.s-feed span {
  overflow-wrap: anywhere;
}

.s-feed time {
  font-size: 12px;
  color: #a8957a;
  white-space: nowrap;
}

.s-watch {
  max-width: 640px;
  margin: 0 auto;
}

.s-watch p {
  margin: 0 0 8px;
}

/* Tek sütun: hedef, ses, en aktifler, etkinlikler, olaylar */
@media (max-width: 860px) {
  .s-camp {
    grid-template-columns: minmax(0, 1fr);
  }

  .s-col {
    display: contents;
  }

  .s-camp-goal {
    order: 1;
  }

  .s-camp-voice {
    order: 2;
  }

  .s-camp-top {
    order: 3;
  }

  .s-camp-events {
    order: 4;
  }

  .s-camp-feed {
    order: 5;
  }
}

@media (max-width: 560px) {
  .s-scene {
    margin-top: 10px;
  }

  .s-stage {
    border-radius: var(--radius);
  }

  /* Telefonda sahne yalnız resim; binalar alttaki büyük düğmeler */
  .s-tags {
    display: none;
  }

  .s-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .s-panel {
    width: 100vw;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .s-pbody {
    padding: 10px;
  }

  .s-people {
    grid-template-columns: minmax(0, 1fr);
  }

  .s-feed li {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .s-feed time {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s-glow,
  .s-b.on .s-glow,
  .s-info,
  .s-chip {
    transition: none;
  }

  /* Önerilen bina hareketsiz bir halkayla işaretli kalır */
  .s-tag.next .s-do::after {
    animation: none;
    opacity: 1;
    box-shadow: 0 0 0 2px var(--ping);
  }
}
