/* Bonfire: ateş başı orta paneli doldurur. Sahne hep gece: göstergeler temadan bağımsız, sıcak tonlu yarı saydam camlar */

.bonfire { flex: 1; min-height: 0; display: flex; padding: 0 16px; }
.bonfire-stage {
  position: relative; flex: 1; min-height: 0; overflow: hidden; outline: none; container-type: inline-size;
  background: #04060d; border: 1px solid var(--line); border-radius: 10px;
}
.bonfire-stage:fullscreen { border: 0; border-radius: 0; }
.bonfire-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.bonfire-stage canvas:active { cursor: grabbing; }
.bf-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: var(--muted); text-align: center; }

/* Yükleme ekranı (campfire-loader.js): siyah zeminde ortada küçük blok: kıvılcımdan büyüyen ateş; altında aşama, çubuk,
   ipucu. Temadan bağımsız sıcak tonlar; bitince yavaşça söner */
.bf-loader { position: absolute; inset: 0; z-index: 6; background: #000; transition: opacity 0.7s ease; pointer-events: none; }
.bf-loader.out { opacity: 0; }
.bonfire-stage .bf-loader canvas { position: absolute; inset: 0; cursor: default; }
.bf-loader-info {
  position: absolute; left: 50%; top: 60%; display: grid; justify-items: center; gap: 6px; width: min(300px, calc(100% - 32px));
  transform: translateX(-50%); color: #fff; text-align: center;
}
.bf-loader-info small { font-size: 9px; font-weight: 800; letter-spacing: 0.3em; color: rgb(255 196 140 / 0.7); }
.bf-loader-info b { font-size: 13px; font-weight: 700; }
.bf-loader-bar { width: 140px; height: 2px; overflow: hidden; border-radius: 2px; background: rgb(255 255 255 / 0.1); }
.bf-loader-bar i {
  display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #ff6a2b, #ffcf6b);
  transform: scaleX(0); transform-origin: left; box-shadow: 0 0 10px rgb(255 140 60 / 0.6);
}
.bf-loader-info p { margin-top: 2px; font-size: 11px; line-height: 1.45; color: rgb(255 255 255 / 0.5); }

/* İsimler başların üstünde (konuşanınki yeşil parlar), dilek fenerlerinin yazısı */
.bf-labels { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; } /* etiketler göstergelerin altında */
.bf-tag {
  position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 1px;
  transform-origin: 50% 100%; will-change: transform;
}
.bf-name {
  padding: 3px 9px; border-radius: 999px; background: rgb(8 10 16 / 0.64); border: 1px solid rgb(255 255 255 / 0.14);
  color: var(--nick, #fff); font-size: 12px; font-weight: 700; white-space: nowrap; text-shadow: 0 1px 2px rgb(0 0 0 / 0.8);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bf-tag.me .bf-name::after { content: " · sen"; color: rgb(255 255 255 / 0.5); font-weight: 500; }
.bf-tag.me { opacity: 0.78; } /* kendi adın önde: daha sade */
.bf-tag.me .bf-name { padding: 2px 8px; font-size: 11px; }
.bf-tag.talk .bf-name { border-color: #4cc38a; box-shadow: 0 0 0 2px rgb(76 195 138 / 0.4), 0 0 14px rgb(76 195 138 / 0.45); }
.bf-tag.away .bf-name { opacity: 0.6; }
.bf-sub { padding: 1px 6px; border-radius: 999px; background: rgb(0 0 0 / 0.45); color: rgb(255 255 255 / 0.65); font-size: 10px; }
.bf-sub:empty { display: none; }
.bf-bubble {
  position: absolute; bottom: 100%; left: 50%; margin-bottom: 2px; font-size: 24px; line-height: 1;
  opacity: 0; transform: translate(-50%, 8px) scale(0.6); transition: opacity 0.25s, transform 0.25s;
}
.bf-bubble.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.bf-wish {
  position: absolute; left: 0; top: 0; max-width: 230px; padding: 6px 11px; border-radius: 10px; text-align: center;
  background: rgb(40 20 8 / 0.58); border: 1px solid rgb(255 180 100 / 0.32); color: #ffe5c7; font-size: 12px; line-height: 1.35;
}
.bf-wish small { display: block; color: rgb(255 229 199 / 0.6); font-size: 10px; }

/* Göstergeler */
.bf-hud {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; color: #fff; font-size: 12px;
  background: radial-gradient(ellipse 80% 75% at 50% 45%, transparent 58%, rgb(0 0 0 / 0.26) 100%);
}
.bf-hud :where(button) { font: inherit; color: inherit; cursor: pointer; background: none; border: 1px solid transparent; }
.bf-hud :where(button):disabled { cursor: not-allowed; }
.bf-hud kbd {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 4px;
  background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.2); font: 600 10px/1 inherit; color: inherit;
}
.bf-glass {
  background: rgb(14 11 14 / 0.58); border: 1px solid rgb(255 255 255 / 0.1); border-radius: 12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* Sol üst: başlık, ateşin gücü, olay akışı */
.bf-top { position: absolute; left: 12px; top: 12px; display: grid; gap: 8px; justify-items: start; max-width: min(380px, 55%); }
.bf-title { display: flex; align-items: center; gap: 10px; padding: 8px 12px; pointer-events: auto; }
.bf-title img { width: 28px; height: 28px; }
.bf-title-text { display: grid; gap: 1px; min-width: 0; }
.bf-title-text b { font-size: 14px; }
.bf-title-text small { color: rgb(255 255 255 / 0.62); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-heat { display: grid; gap: 4px; min-width: 96px; margin-left: 4px; padding-left: 12px; border-left: 1px solid rgb(255 255 255 / 0.1); }
.bf-heat-bar { height: 5px; border-radius: 99px; background: rgb(255 255 255 / 0.12); overflow: hidden; }
.bf-heat-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff5a14, #ffc46e); transition: width 0.6s; }
.bf-heat small { color: rgb(255 255 255 / 0.62); font-size: 10px; white-space: nowrap; }
.bf-heat.low small { color: #ffb36b; }
.bf-feed { display: grid; gap: 4px; justify-items: start; }
.bf-line {
  padding: 4px 10px; border-radius: 8px; background: rgb(0 0 0 / 0.42); color: rgb(255 255 255 / 0.92); font-size: 12px;
  animation: bf-in 0.25s ease-out; transition: opacity 0.6s;
}
.bf-line.gone { opacity: 0; }

/* Sağ üst: radyo ve araçlar */
.bf-right { position: absolute; right: 12px; top: 12px; display: flex; align-items: flex-start; gap: 8px; pointer-events: auto; }
.bf-radio { display: flex; align-items: center; gap: 4px; padding: 5px 8px 5px 7px; }
.bf-radio > img { width: 26px; height: 26px; transition: filter 0.3s; }
.bf-radio.on > img { filter: drop-shadow(0 0 6px rgb(255 170 80 / 0.75)); }
.bf-radio-name { display: grid; min-width: 118px; max-width: 170px; padding: 2px 6px; border-radius: 7px; text-align: left; }
.bf-radio-name:hover { background: rgb(255 255 255 / 0.08); }
.bf-radio-name b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-radio-name small { color: rgb(255 255 255 / 0.55); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-radio[data-state="blocked"] .bf-radio-name small,
.bf-radio[data-state="error"] .bf-radio-name small { color: #ffb36b; }
.bf-radio[data-state="playing"] .bf-radio-name small::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #4cc38a; vertical-align: 1px; animation: nt-pulse 1.4s ease-in-out infinite; }
.bf-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-size: 15px; line-height: 1; }
.bf-hud .bf-ico:hover { background: rgb(255 255 255 / 0.1); }
.bf-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bf-power.on { color: #ffb347; }
.bf-vol { width: 72px; accent-color: #ff9a3c; }
.bf-tools { display: flex; gap: 6px; }
.bf-tools .bf-ico { width: 36px; height: 36px; font-size: 15px; font-weight: 700; }
.bf-hud .bf-exit { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 9px; border: 1px solid rgb(255 255 255 / 0.1); font-weight: 600; }
.bf-exit img { width: 20px; height: 20px; }
.bf-hud .bf-exit:hover { border-color: rgb(255 130 100 / 0.6); background: rgb(80 20 10 / 0.5); }

/* Ortada üstte: sohbet sorusu */
.bf-card {
  position: absolute; left: 50%; top: 72px; transform: translateX(-50%); width: min(440px, calc(100% - 24px));
  display: grid; gap: 8px; padding: 11px 15px 13px; text-align: center; pointer-events: auto;
  background: rgb(30 17 10 / 0.74); border-color: rgb(255 170 90 / 0.32); animation: bf-drop 0.35s ease-out;
}
.bf-card-head { display: flex; align-items: center; gap: 8px; }
.bf-card-head img { width: 22px; height: 22px; }
.bf-card-head small { flex: 1; text-align: left; color: rgb(255 220 180 / 0.78); font-size: 11px; }
.bf-card p { color: #fff4e6; font-size: 17px; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.bf-card .bf-btn { justify-self: center; }

/* Altta: eylemler */
.bf-bar {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 2px; padding: 5px;
  max-width: calc(100% - 24px); overflow-x: auto; scrollbar-width: none; pointer-events: auto;
}
.bf-bar::-webkit-scrollbar { display: none; }
.bf-act {
  flex: none; display: grid; justify-items: center; gap: 3px; min-width: 66px; padding: 6px 8px 5px; border-radius: 9px;
  color: rgb(255 255 255 / 0.86); font-size: 11px; white-space: nowrap;
}
.bf-act img { width: 26px; height: 26px; transition: transform 0.15s; }
.bf-act:hover:not(:disabled) { background: rgb(255 255 255 / 0.08); color: #fff; }
.bf-act:hover:not(:disabled) img { transform: translateY(-2px); }
.bf-act.on { background: rgb(255 150 60 / 0.16); border-color: rgb(255 150 60 / 0.45); color: #fff; }
.bf-act:disabled { opacity: 0.45; }

/* Marşmelov ve gitar panelleri (eylem çubuğunun üstünde) */
.bf-panel {
  position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%); width: min(430px, calc(100% - 24px));
  display: grid; gap: 9px; padding: 11px 14px 12px; pointer-events: auto; animation: bf-in-x 0.2s ease-out;
}
.bf-panel-head { display: flex; align-items: center; gap: 8px; }
.bf-panel-head img { width: 22px; height: 22px; }
.bf-panel-head span { font-size: 13px; font-weight: 700; }
.bf-panel-head b,
.bf-panel-head small { margin-left: auto; color: rgb(255 255 255 / 0.7); font-size: 11px; font-weight: 600; }
.bf-roast.ready .bf-panel-head b { color: #ffd27a; }
.bf-roast.flame { border-color: rgb(255 90 40 / 0.75); box-shadow: 0 0 26px rgb(255 90 40 / 0.35); }
.bf-roast.flame .bf-panel-head b { color: #ff8a65; }
.bf-roast.ready { border-color: rgb(255 210 122 / 0.55); }
.bf-meter { display: grid; grid-template-columns: 44px 1fr 66px; align-items: center; gap: 9px; }
.bf-meter > span { color: rgb(255 255 255 / 0.6); font-size: 11px; }
.bf-meter > small { text-align: right; color: rgb(255 255 255 / 0.75); font-size: 11px; }
.bf-meter.gold > small { color: #ffd27a; font-weight: 700; }
.bf-meter.hot > small { color: #ff8a65; }
.bf-meter-bar {
  position: relative; height: 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.15);
  background: linear-gradient(90deg, #fbf8f1 0%, #f2e1b8 23%, #dda45c 46%, #a9652b 65%, #5a3417 81%, #1b1411 100%);
}
.bf-zone { position: absolute; top: -4px; bottom: -4px; border: 2px solid #ffd27a; border-radius: 6px; box-shadow: 0 0 10px rgb(255 210 122 / 0.4); }
.bf-mark {
  position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; border: 2px solid #1b1411; box-shadow: 0 1px 4px rgb(0 0 0 / 0.5); transition: left 0.1s linear;
}
.bf-panel-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 0.16); background: rgb(255 255 255 / 0.06); font-size: 12px; font-weight: 600;
}
.bf-btn:hover { background: rgb(255 255 255 / 0.13); }
.bf-btn.primary { background: linear-gradient(180deg, #ffa04a, #ef7a25); border-color: #ffa04a; color: #1d0e04; }
.bf-btn.primary:hover { filter: brightness(1.07); }
.bf-btn.primary kbd { background: rgb(0 0 0 / 0.15); border-color: rgb(0 0 0 / 0.2); }
.bf-btn.blow { background: linear-gradient(180deg, #ff6a4a, #e3402a); border-color: #ff6a4a; color: #fff; animation: bf-pulse 0.7s ease-in-out infinite; }
.bf-btn.ghost { margin-left: auto; background: transparent; }
.bf-chords { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.bf-chord {
  display: grid; place-items: center; gap: 2px; height: 48px; border-radius: 8px;
  background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.14);
}
.bf-chord b { font-size: 14px; }
.bf-chord kbd { min-width: 14px; height: 14px; font-size: 9px; opacity: 0.7; }
.bf-chord:hover { background: rgb(255 150 60 / 0.16); }
.bf-chord.hit { animation: bf-hit 0.25s ease-out; }

/* Açılır küçük paneller */
.bf-pop { position: absolute; z-index: 5; display: grid; gap: 8px; padding: 10px; pointer-events: auto; animation: bf-in 0.15s ease-out; }
.bf-pop > small { color: rgb(255 255 255 / 0.62); font-size: 11px; }
.bf-pop-emote { display: flex; gap: 2px; padding: 6px; }
.bf-emo { display: grid; justify-items: center; gap: 3px; width: 66px; padding: 6px 2px; border-radius: 8px; color: rgb(255 255 255 / 0.85); font-size: 10px; }
.bf-emo img { width: 30px; height: 30px; transition: transform 0.15s; }
.bf-emo:hover { background: rgb(255 255 255 / 0.1); }
.bf-emo:hover img { transform: scale(1.12); }
.bf-swatches { display: flex; gap: 10px; }
.bf-swatch { display: grid; justify-items: center; gap: 5px; padding: 4px; border-radius: 8px; color: rgb(255 255 255 / 0.8); font-size: 10px; }
.bf-swatch::before {
  content: ""; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0, var(--c) 45%, color-mix(in srgb, var(--c) 40%, #000) 100%); box-shadow: 0 0 14px var(--c);
}
.bf-swatch.rainbow::before { background: conic-gradient(#ff4d4d, #ffb84d, #f9f871, #4dff88, #4dc3ff, #9b6bff, #ff4d4d); box-shadow: 0 0 14px rgb(255 255 255 / 0.4); }
.bf-swatch:hover { background: rgb(255 255 255 / 0.08); }
.bf-lantern-form { display: flex; gap: 6px; }
.bf-lantern-form input {
  flex: 1; min-width: 190px; height: 32px; padding: 0 10px; border-radius: 8px; outline: none;
  border: 1px solid rgb(255 255 255 / 0.18); background: rgb(0 0 0 / 0.35); color: #fff; font: inherit;
}
.bf-lantern-form input:focus { border-color: #ffa04a; }
.bf-pop-station { gap: 2px; min-width: 232px; padding: 6px; }
.bf-station { display: grid; gap: 1px; padding: 7px 10px; border-radius: 8px; text-align: left; }
.bf-station b { font-size: 12px; }
.bf-station small { color: rgb(255 255 255 / 0.55); font-size: 10px; }
.bf-station:hover { background: rgb(255 255 255 / 0.08); }
.bf-station.on { background: rgb(255 150 60 / 0.16); }
.bf-station.on b::before { content: "▶ "; color: #ffb347; }
.bf-station.off { margin-top: 4px; border-top: 1px solid rgb(255 255 255 / 0.08); border-radius: 0 0 8px 8px; }
.bf-station.off.on b::before { content: none; }
.bf-pop-settings { min-width: 270px; }
.bf-set-row { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 10px; color: rgb(255 255 255 / 0.7); }
.bf-seg { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: rgb(0 0 0 / 0.3); }
.bf-seg button { flex: 1; height: 28px; border-radius: 6px; color: rgb(255 255 255 / 0.7); }
.bf-seg button.on { background: rgb(255 150 60 / 0.25); color: #fff; }
.bf-set-row .bf-vol { width: 100%; }
.bf-set-btns { display: flex; gap: 6px; }

/* Sol alt: kamp defteri */
.bf-book { position: absolute; left: 12px; bottom: 14px; width: 236px; display: grid; gap: 7px; padding: 8px 10px 10px; pointer-events: auto; }
.bf-book-head { display: flex; align-items: center; gap: 7px; padding: 0; color: rgb(255 255 255 / 0.85); font-size: 12px; font-weight: 700; text-align: left; }
.bf-book-head img { width: 20px; height: 20px; }
.bf-book-mine { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.bf-stat { display: grid; justify-items: center; gap: 1px; padding: 5px 2px; border-radius: 8px; background: rgb(255 255 255 / 0.05); }
.bf-stat img { width: 18px; height: 18px; }
.bf-stat b { font-size: 13px; }
.bf-stat small { color: rgb(255 255 255 / 0.55); font-size: 9px; }
.bf-book-label { color: rgb(255 255 255 / 0.5); font-size: 10px; }
.bf-book-top { display: grid; gap: 3px; list-style: none; counter-reset: bf-rank; }
.bf-book-top li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto auto; align-items: baseline; gap: 6px; font-size: 11px; }
.bf-book-top li::before { counter-increment: bf-rank; content: counter(bf-rank); color: #ffd27a; font-weight: 700; }
.bf-who { color: var(--nick, #fff); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-book-top li small { color: rgb(255 255 255 / 0.5); }
.bf-book-top li.empty { display: block; color: rgb(255 255 255 / 0.5); }
.bf-book-top li.empty::before { content: none; }

/* Nasıl? ve oda kapısı */
.bf-help {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(390px, calc(100% - 24px));
  display: grid; gap: 10px; padding: 16px 18px; pointer-events: auto; background: rgb(20 13 10 / 0.84); animation: bf-in-xy 0.25s ease-out;
}
.bf-help > b { font-size: 15px; }
.bf-help > p { color: rgb(255 255 255 / 0.72); line-height: 1.5; }
.bf-help ul { display: grid; gap: 6px; list-style: none; }
.bf-help li { display: grid; grid-template-columns: minmax(118px, auto) 1fr; align-items: center; gap: 10px; color: rgb(255 255 255 / 0.8); }
.bf-help li kbd { justify-self: start; height: 20px; padding: 0 6px; font-size: 10px; }
.bf-help .bf-btn { justify-self: end; }
.bf-gate {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px;
  text-align: center; background: rgb(4 6 13 / 0.55); pointer-events: auto;
}
.bf-gate img { width: 64px; height: 64px; }
.bf-gate b { font-size: 16px; }
.bf-gate p { max-width: 360px; color: rgb(255 255 255 / 0.7); line-height: 1.5; }
.bf-gate.loading { background: transparent; pointer-events: none; }
.bf-gate.loading img { animation: bf-float 1.6s ease-in-out infinite; }

/* Kısa bildirim ve fare ipucu */
.bf-toast {
  position: absolute; left: 50%; bottom: 92px; transform: translate(-50%, 8px); max-width: calc(100% - 24px); padding: 8px 15px;
  border-radius: 999px; background: rgb(10 10 14 / 0.78); color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.bf-roast:not([hidden]) ~ .bf-toast { bottom: 262px; }
.bf-guitar:not([hidden]) ~ .bf-toast { bottom: 206px; }
.bf-toast.show { opacity: 1; transform: translate(-50%, 0); }
.bf-toast.warn { color: #ffcf9a; }
.bf-toast.gold { color: #ffd27a; box-shadow: 0 0 22px rgb(255 210 122 / 0.35); }
.bf-hint {
  position: absolute; left: 0; top: 0; padding: 4px 8px; border-radius: 6px; background: rgb(0 0 0 / 0.72);
  color: #fff; font-size: 11px; white-space: nowrap; pointer-events: none;
}

/* Karakterim ve Gece panelleri (sağ üstteki düğmelerden) */
.bf-ico-img { display: grid; place-items: center; }
.bf-ico-img img { width: 20px; height: 20px; }
.bf-ico.spooky { box-shadow: 0 0 0 1px #ff8a2a, 0 0 18px -3px #ff8a2a; }
.bf-pop-title { font-size: 13px; color: #fff; }
.bf-pop-note { color: rgb(255 255 255 / 0.5); font-size: 10.5px; line-height: 1.45; }
.bf-pop-night { width: 272px; display: grid; gap: 9px; }
.bf-weathers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bf-weather { display: grid; justify-items: center; gap: 3px; padding: 7px 4px 6px; border-radius: 10px; border: 1px solid rgb(255 255 255 / 0.1); color: rgb(255 255 255 / 0.85); font-size: 11px; }
.bf-weather img { width: 28px; height: 28px; }
.bf-weather:hover { background: rgb(255 255 255 / 0.06); }
.bf-weather.on { border-color: #ff9a3c; background: rgb(255 154 60 / 0.14); color: #fff; }
.bf-spooky { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgb(255 255 255 / 0.1); color: #fff; font-size: 12px; font-weight: 700; }
.bf-spooky img { width: 26px; height: 26px; }
.bf-spooky:hover { background: rgb(255 255 255 / 0.06); }
.bf-spooky.on { border-color: #ff8a2a; background: rgb(255 120 30 / 0.18); }
/* Korku gecesinde soru kartı */
.bf-card.spooky { border-color: rgb(150 255 120 / 0.32); background: linear-gradient(160deg, rgb(26 40 22 / 0.92), rgb(10 14 12 / 0.92)); }
.bf-card.spooky p { color: #e9ffd9; }

/* Hatıra fotoğrafı: kısa beyaz parlama */
.bonfire-stage::after { content: ""; position: absolute; inset: 0; z-index: 2; background: #fff; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.bonfire-stage.flash::after { opacity: 0.55; transition: none; }

/* Sinema modu: göstergeler gizli */
.bonfire-stage.cinema .bf-hud > :not(.bf-toast) { opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.bonfire-stage.cinema .bf-hud { background: none; }

/* Dar alan (telefon, yan paneller açık dar pencere): defter kapanır, kart sağa (olay akışıyla çakışmasın) */
@container (max-width: 1180px) {
  .bf-book { width: auto; max-width: 236px; }
  .bf-book:not(.open) > :not(.bf-book-head) { display: none; }
  .bf-book:not(.open) .bf-book-head span { display: none; }
}
/* Sağ üst tek satırken başlığa yetişmesin (yan paneller açık pencere; iskelenin bir düğmesi fazla) */
@container (max-width: 1080px) {
  .bf-heat { min-width: 46px; }
  .bf-heat small { display: none; }
  .bf-vol { width: 56px; }
  .bf-exit span { display: none; }
  .bf-hud .bf-exit { padding: 0 9px; }
}
@container (max-width: 980px) {
  .bf-heat { min-width: 46px; }
  .bf-heat small { display: none; }
  .bf-vol { width: 56px; }
  .bf-radio-name { min-width: 0; max-width: 124px; }
  .bf-card { top: 64px; left: auto; right: 12px; transform: none; width: min(340px, 48%); animation-name: bf-in; }
  .bf-top { max-width: 48%; }
  .bf-exit span { display: none; }
}
@container (max-width: 820px) {
  .bf-heat { display: none; }
  .bf-vol { display: none; }
  /* alttaki çubuk neredeyse boydan boya: defter çubuğun üstünde, marşmelov / gitar paneli açıkken gizli */
  .bf-book { bottom: 92px; }
  /* sağ üst: radyo üstte, düğmeler altında (başlığa binmesin); soru kartı onların altında */
  .bf-right { flex-direction: column; align-items: flex-end; }
  .bf-card { top: 112px; }
  .bf-roast:not([hidden]) ~ .bf-book,
  .bf-guitar:not([hidden]) ~ .bf-book { display: none; }
}
@container (max-width: 640px) {
  .bf-act span { display: none; }
  .bf-act { min-width: 44px; padding: 7px 6px; }
  .bf-panel { bottom: 76px; }
  .bf-toast { bottom: 78px; }
  .bf-roast:not([hidden]) ~ .bf-toast { bottom: 248px; }
  .bf-guitar:not([hidden]) ~ .bf-toast { bottom: 192px; }
  .bf-top { max-width: calc(100% - 150px); }
  .bf-feed { display: none; }
  .bf-exit span { display: none; }
  .bf-radio-name { display: none; }
  .bf-radio { padding: 4px; }
  .bf-right { flex-direction: column; align-items: flex-end; }
  /* düğmeler başlığın altından başlar (üstüne binmesin), biraz küçülür */
  .bf-tools { gap: 4px; margin-top: 16px; }
  .bf-tools .bf-ico, .bf-hud .bf-exit { width: 32px; height: 32px; }
  .bf-hud .bf-exit { padding: 0; justify-content: center; }
  .bf-card { top: 124px; left: 12px; right: 12px; width: auto; }
  .bf-chords { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bf-book { bottom: 76px; }
  .bf-meter { grid-template-columns: 38px 1fr 58px; }
  /* telefonda paneller sıkı: marşmelov / gitar açıkken defter gizli, "bırak" alttaki çubukta zaten var */
  .bf-roast:not([hidden]) ~ .bf-book,
  .bf-guitar:not([hidden]) ~ .bf-book { display: none; }
  .bf-panel { gap: 7px; padding: 9px 11px 10px; }
  .bf-roast .bf-btn.ghost { display: none; }
  .bf-panel-btns .bf-btn { flex: 1; justify-content: center; }
  .bf-card { gap: 5px; padding: 9px 12px 10px; }
  .bf-card p { font-size: 15px; }
  .bf-help li { grid-template-columns: minmax(96px, auto) 1fr; }
}

@keyframes bf-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes bf-in-x { from { opacity: 0; transform: translate(-50%, 6px); } }
@keyframes bf-in-xy { from { opacity: 0; transform: translate(-50%, -46%); } }
@keyframes bf-drop { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes bf-pulse { 50% { box-shadow: 0 0 0 4px rgb(255 106 74 / 0.35); } }
@keyframes bf-hit { from { background: rgb(255 160 74 / 0.5); transform: scale(0.94); } }
@keyframes bf-float { 50% { transform: translateY(-6px); } }

/* Uygulamada: başlık çubuğundaki düğme (Manifest'in solunda; odanda ateş başında kaç kişi) ve oda listesinde
   "Bonfire · katıl" satırı (sıcak turuncu) */
.bf-tab { border-color: color-mix(in srgb, #ff9a3c 45%, var(--line)); background: color-mix(in srgb, #ff9a3c 10%, transparent); box-shadow: 0 0 14px -5px color-mix(in srgb, #ff9a3c 60%, transparent); }
.bf-tab:hover { border-color: #ff9a3c; box-shadow: 0 0 18px -3px color-mix(in srgb, #ff9a3c 70%, transparent); }
.bf-tab .nt-icon { width: 16px; height: 16px; }
.bf-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: #ff9a3c; color: #1d0f04; font-size: 10px; font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.bf-tab-n[hidden] { display: none; }
@media (max-width: 760px) {
  .bf-tab-n { position: absolute; top: -5px; right: -5px; min-width: 15px; height: 15px; margin: 0; padding: 0 3px; font-size: 9px; box-shadow: 0 0 0 2px var(--panel); }
}
.acts .doing.camping:hover { background: color-mix(in srgb, #ff9a3c 16%, transparent); }
/* Sol alttaki ses panelinde ateş başı kartı (oyun kartıyla aynı; ikon ateş renginde) */
.voice-game.fire .voice-game-icon { background: color-mix(in srgb, #ff9a3c 16%, var(--raise)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #ff9a3c 30%, transparent); }
.voice-game.fire.here .voice-game-icon { box-shadow: inset 0 0 0 1px #ff9a3c; }
