/* ============================================================
   KAAHIN v25 (eski Oracle v8) — Brief Breaker chrome (topbar empty + #orHud BB-style),
   right SETTINGS panel, terminal without prompt, bottom biomonitor
   ============================================================ */

:root {
  --or-mono: 'JetBrains Mono', 'Menlo', monospace;
  --or-pp:   'Poppins', system-ui, sans-serif;
  --or-sf:   'Steelfish', 'Bebas Neue', sans-serif;

  --or-bg:     #050505;
  --or-panel:  #0a0a0a;

  --or-line:   rgba(255,255,255,.07);
  --or-line-2: rgba(255,255,255,.14);

  --or-dim:    rgba(255,255,255,.4);
  --or-dim-2:  rgba(255,255,255,.62);
  --or-white:  #fff;

  --or-red:    #E92038;
  --or-red2:   #c8102e;
  --or-yellow: #facc15;
  --or-green:  #4ade80;
  --or-cyan:   #38bdf8;
  --or-orange: #fb923c;

  --or-top: 52px;
  --or-hud: 82px;          /* Brief Breaker HUD height */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--or-bg);
  color: var(--or-white);
  font-family: var(--or-pp);
  font-size: 14px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

/* ──────────────────────────────────────────────────────────
   APP SHELL — 3 columns, leaves room for BB HUD
────────────────────────────────────────────────────────── */
.or-app {
  position: fixed;
  top: var(--or-top);
  bottom: var(--or-hud);
  left: 0; right: 0;
  display: grid;
  /* v26: sa\u011f panel geni\u015fletildi (haz\u0131r cevaplar buraya ta\u015f\u0131nd\u0131) */
  /* v30.1 — Sağ panel kaldırıldı; şekiller artık alt drawer'da. */
  grid-template-columns: 360px 1fr 0;
  gap: 0;
  z-index: 2;
}

/* ══════════════════════════════════════════════════════════
   TERMINAL CHAT (LEFT) — same look, prompt removed
══════════════════════════════════════════════════════════ */
.or-term {
  display: flex; flex-direction: column;
  background: #060606;
  border-right: 1px solid var(--or-line);
  font-family: var(--or-mono);
  min-width: 0;
  position: relative;
  /* v24 — fixed full-height container so flex children divide space
     properly; prevents footer/quicks from being pushed out of view. */
  height: 100%;
  overflow: hidden;
}
.or-term::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 3px,
    rgba(255,255,255,.012) 4px,
    rgba(255,255,255,.012) 5px
  );
  pointer-events: none;
  z-index: 1;
}

.or-term-head {
  display: flex; align-items: center; gap: .9rem;
  padding: .55rem .9rem;
  background: #050505;
  border-bottom: 1px solid var(--or-line);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.or-term-dots { display: inline-flex; gap: 6px; }
.or-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.or-dot:nth-child(1) { background: #ff5f57; }
.or-dot:nth-child(2) { background: #febc2e; }
.or-dot:nth-child(3) { background: #28c840; }
.or-term-title {
  font-family: var(--or-mono);
  font-size: .56rem;
  letter-spacing: .18em;
  color: var(--or-dim-2);
  flex: 1;
  text-align: center;
}
.or-term-state {
  font-family: var(--or-mono);
  font-size: .5rem;
  letter-spacing: .16em;
  color: var(--or-dim);
}
.or-term-state.busy { color: var(--or-yellow); }
.or-term-state.live { color: var(--or-red); }

/* v28.21 — Chat üst şerit: pratik chat bilgileri */
.or-term-head--chat {
  gap: .85rem;
  padding: .5rem .9rem;
  background: #060606;
  font-family: var(--or-mono);
  font-size: .58rem;
  letter-spacing: .14em;
  color: var(--or-dim);
}
.or-chat-status {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: var(--or-dim);
  text-transform: uppercase;
  letter-spacing: .16em;
}
.or-chat-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;             /* default: hazır = yeşil */
  box-shadow: 0 0 6px rgba(74,222,128,0.7);
  animation: chatDotPulse 2.4s ease-in-out infinite;
}
.or-chat-status.is-busy .or-chat-status-dot {
  background: #facc15;
  box-shadow: 0 0 6px rgba(250,204,21,0.7);
}
.or-chat-status.is-live .or-chat-status-dot {
  background: #ef4444;
  box-shadow: 0 0 7px rgba(239,68,68,0.85);
}
.or-chat-status.is-err  .or-chat-status-dot {
  background: #ef4444;
  animation: chatDotErr .6s steps(2) infinite;
}
@keyframes chatDotPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .45; }
}
@keyframes chatDotErr {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
.or-chat-meta {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: var(--or-dim-2);
  letter-spacing: .12em;
}
.or-chat-meta i { font-size: .72rem; opacity: .7; }
.or-chat-meta span { color: #cfd6df; font-variant-numeric: tabular-nums; }
.or-chat-spacer { flex: 1; }
.or-chat-action {
  position: relative;
  background: transparent;
  border: 1px solid var(--or-line, rgba(255,255,255,0.08));
  color: var(--or-dim-2);
  width: 22px; height: 22px;
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .15s ease;
  font-size: .7rem;
}
.or-chat-action:hover {
  /* v29.7 — Kırmızı border kaldırıldı; sadece hafif vurgu kalıyor. */
  color: #fff;
  border-color: transparent;
  background: rgba(255,255,255,0.06);
}
/* v29.7 — Custom tooltip (data-tip): kırmızı dolgu + beyaz yazı */
.or-chat-action[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--or-red, #E92038);
  color: #fff;
  border: 1px solid var(--or-red, #E92038);
  padding: .35rem .55rem;
  border-radius: 4px;
  font-family: var(--or-mono);
  font-size: .56rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity .15s ease, transform .15s ease;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 0 10px rgba(233,32,56,0.35);
}
.or-chat-action[data-tip]:hover::after {
  opacity: 1;
  transform: translateY(0);
}
.or-chat-time {
  color: var(--or-dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: .14em;
  min-width: 38px;
  text-align: right;
}

.or-term-body {
  /* v29.40 — Chat artık yarı yükseklik; SORU ÇEŞMESİ alt yarıyı dolduruyor. */
  flex: 1 1 50%;
  min-height: 0;            /* v24 — critical: lets flex child shrink for scroll */
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 1.1rem;
  display: flex; flex-direction: column;
  gap: .9rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
  position: relative;
  z-index: 2;
  font-size: .7rem;
  line-height: 1.65;
  color: rgba(225,225,225,.85);
}
.or-term-body::-webkit-scrollbar { width: 4px; }
.or-term-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); }

.or-line {
  font-family: var(--or-mono);
  font-size: .7rem;
  line-height: 1.65;
  animation: orFade .25s ease-out;
}
@keyframes orFade {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}
.or-line .meta {
  display: inline-flex; gap: .55rem; align-items: center;
  font-size: .54rem;
  letter-spacing: .12em;
  margin-bottom: .15rem;
  color: var(--or-dim);
}
.or-line.user .meta { color: var(--or-dim-2); }
.or-line.ai   .meta { color: var(--or-red); }
.or-line.ai.angry .meta { color: var(--or-orange); }
.or-line.ai.happy .meta { color: var(--or-dim-2); }
.or-line.ai.sad   .meta { color: var(--or-cyan); }
.or-line .time { color: rgba(255,255,255,.28); }

.or-line .body {
  color: rgba(235,235,235,.92);
  padding-left: .85rem;
  position: relative;
}
.or-line .body::before {
  content: '';
  position: absolute;
  left: 0; top: .2em; bottom: .2em;
  width: 2px;
  background: rgba(255,255,255,.08);
}
.or-line.user .body::before { background: rgba(255,255,255,.18); }
.or-line.ai   .body::before { background: var(--or-red); }
.or-line.ai.angry .body::before { background: var(--or-orange); }
.or-line.ai.happy .body::before { background: rgba(255,255,255,.4); }
.or-line.ai.sad   .body::before { background: var(--or-cyan); }

.or-cursor::after {
  content: '_';
  margin-left: 2px;
  color: rgba(255,255,255,.7);
  animation: orBlink 1s steps(2,start) infinite;
}
@keyframes orBlink { 50% { opacity: 0; } }

/* v24 — QUICK PROMPTS: now categorized via tab strip + collapsible body.
   Compact footprint, doesn't squeeze the transcript anymore. */
.or-quicks {
  background: #040404;
  border-top: 1px solid var(--or-line);
  position: relative; z-index: 2;
  flex-shrink: 0;
  max-height: 38vh;
  display: flex; flex-direction: column;
}
.or-quicks-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--or-line);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.or-quicks-tabs::-webkit-scrollbar { display: none; }
.or-quicks-tab {
  flex: 1 0 auto;
  padding: .42rem .6rem;
  font-family: var(--or-mono);
  font-size: .48rem;
  letter-spacing: .14em;
  color: var(--or-dim);
  background: transparent;
  border: none;
  border-right: 1px solid var(--or-line);
  cursor: pointer;
  transition: color .15s, background .15s;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: .35rem;
}
.or-quicks-tab:last-child { border-right: none; }
.or-quicks-tab i { font-size: .55rem; opacity: .7; }
.or-quicks-tab:hover { color: #fff; background: rgba(255,255,255,.03); }
.or-quicks-tab.is-active {
  color: #fff;
  background: rgba(233,32,56,.12);
  box-shadow: inset 0 -2px 0 var(--or-red);
}
.or-quicks-tab.is-active i { opacity: 1; color: var(--or-red); }

.or-quicks-pane {
  display: none;
  flex-wrap: wrap; gap: .3rem;
  padding: .6rem .9rem .7rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
}
.or-quicks-pane::-webkit-scrollbar { width: 3px; }
.or-quicks-pane::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); }
.or-quicks-pane.is-active { display: flex; }

.or-quick {
  padding: .3rem .55rem;
  font-family: var(--or-mono);
  font-size: .5rem;
  letter-spacing: .1em;
  color: var(--or-dim-2);
  background: transparent;
  border: 1px solid var(--or-line);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}
.or-quick:hover {
  color: #fff;
  border-color: var(--or-red);
  background: rgba(233,32,56,.08);
}
.or-quicks-hint {
  padding: .35rem .9rem;
  font-family: var(--or-mono);
  font-size: .44rem;
  letter-spacing: .15em;
  color: var(--or-dim);
  border-bottom: 1px solid var(--or-line);
  flex-shrink: 0;
  background: rgba(0,0,0,.5);
}
.or-quicks-hint .accent { color: var(--or-red); }

/* INPUT — no prompt, just placeholder */
.or-term-input {
  display: flex; align-items: center; gap: .55rem;
  padding: .65rem .9rem;
  background: #050505;
  border-top: 1px solid var(--or-line);
  position: relative; z-index: 2;
}
#orInput {
  flex: 1;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--or-line);
  outline: none;
  color: #fff;
  font-family: var(--or-mono);
  font-size: .72rem;
  padding: .5rem .65rem;
  letter-spacing: .02em;
  caret-color: var(--or-red);
  transition: border-color .15s, background .15s;
}
#orInput:focus { border-color: var(--or-red); background: rgba(233,32,56,.04); }
#orInput::placeholder { color: rgba(255,255,255,.28); letter-spacing: .04em; }

.or-iconbtn {
  width: 30px; height: 30px;
  background: transparent;
  border: 1px solid var(--or-line-2);
  color: var(--or-dim-2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  transition: color .15s, border-color .15s, background .15s;
}
.or-iconbtn:hover { color: #fff; border-color: var(--or-red); background: rgba(233,32,56,.1); }
.or-iconbtn.is-listening {
  background: var(--or-red); color: #fff; border-color: var(--or-red);
  animation: micPulse 1.2s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233,32,56,.55); }
  50%      { box-shadow: 0 0 0 6px rgba(233,32,56,0); }
}

.or-send {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem;
  font-family: var(--or-mono);
  font-size: .55rem;
  letter-spacing: .22em;
  background: var(--or-red);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.or-send i { font-size: .55rem; }
.or-send:hover { background: #ff2a40; }

/* ══════════════════════════════════════════════════════════
   STAGE (center)
══════════════════════════════════════════════════════════ */
.or-stage {
  position: relative;
  background: #000000;
  overflow: hidden;
}
#orCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  cursor: crosshair;
  background: #000000;
}

.or-stage-meta {
  position: absolute;
  left: 0; right: 0;
  top: .85rem;
  display: flex; justify-content: space-between;
  padding: 0 1rem;
  font-family: var(--or-mono);
  font-size: .48rem;
  letter-spacing: .26em;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 2;
}
.or-stage-meta--bot { top: auto; bottom: .85rem; }

#orMoodLabel.angry { color: var(--or-orange); }
#orMoodLabel.happy { color: var(--or-green); }
#orMoodLabel.sad   { color: var(--or-cyan); }

/* ══════════════════════════════════════════════════════════
   v26 — ORAKEL PANEL (RIGHT) — Quick prompts + minimal toggles
   "Soru çeşmesi" — mistik, KAAHIN arayüzüne uyumlu
══════════════════════════════════════════════════════════ */
.or-orakel {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg,
    rgba(8,8,10,.96) 0%,
    rgba(6,6,8,.98) 50%,
    rgba(4,4,6,1) 100%);
  border-left: 1px solid var(--or-line);
  position: relative;
  overflow: hidden;
  height: 100%;
}
/* Mystical vertical line accent on left edge */
.or-orakel::before {
  content: '';
  position: absolute;
  left: 0; top: 12%; bottom: 12%;
  width: 1px;
  background: linear-gradient(180deg,
    transparent,
    rgba(233,32,56,.4) 30%,
    rgba(233,32,56,.4) 70%,
    transparent);
  pointer-events: none;
}
/* Subtle noise overlay */
.or-orakel::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  opacity: .35;
}

.or-orakel-head {
  display: flex; align-items: center; gap: .65rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--or-line);
  flex-shrink: 0;
  font-family: var(--or-mono);
  position: relative; z-index: 2;
  background: rgba(0,0,0,.4);
}
.or-orakel-glyph {
  color: var(--or-red);
  font-size: .65rem;
  animation: orakelPulse 2.4s ease-in-out infinite;
}
@keyframes orakelPulse {
  0%, 100% { opacity: .5; transform: rotate(0deg); }
  50%      { opacity: 1;  transform: rotate(45deg); }
}
.or-orakel-title {
  flex: 1;
  font-size: .58rem;
  letter-spacing: .32em;
  color: #fff;
  font-weight: 500;
}
.or-orakel-led {
  width: 6px; height: 6px;
  background: var(--or-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--or-red), 0 0 2px var(--or-red);
  animation: bmLed 2.2s ease-in-out infinite;
}

.or-orakel-hint {
  padding: .75rem 1rem .85rem;
  font-family: var(--or-mono);
  font-size: .5rem;
  letter-spacing: .14em;
  line-height: 1.6;
  color: var(--or-dim);
  border-bottom: 1px solid var(--or-line);
  flex-shrink: 0;
  background: rgba(0,0,0,.3);
  position: relative; z-index: 2;
}
.or-orakel-hint .accent { color: var(--or-red); font-weight: 700; }

/* Quick prompts in right panel — override left panel styles */
.or-orakel .or-quicks {
  background: transparent;
  border-top: none;
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  display: flex; flex-direction: column;
  position: relative; z-index: 2;
}
.or-orakel .or-quicks-tabs {
  background: rgba(0,0,0,.35);
  border-bottom: 1px solid var(--or-line);
  flex-shrink: 0;
  padding: 0;
}
.or-orakel .or-quicks-tab {
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: .55rem .35rem;
  font-size: .42rem;
  letter-spacing: .14em;
}
.or-orakel .or-quicks-tab i {
  font-size: .8rem;
  opacity: .55;
}
.or-orakel .or-quicks-tab.is-active i {
  opacity: 1;
  text-shadow: 0 0 8px rgba(233,32,56,.6);
}
.or-orakel .or-quicks-pane {
  padding: .8rem .9rem 1rem;
  flex: 1 1 0;
  min-height: 0;
  align-content: flex-start;
}
.or-orakel .or-quick {
  width: 100%;
  text-align: left;
  white-space: normal;
  padding: .5rem .7rem;
  font-size: .52rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.015);
  border: 1px solid rgba(255,255,255,.06);
  position: relative;
  transition: all .18s;
}
.or-orakel .or-quick::before {
  content: '◇';
  margin-right: .55rem;
  color: rgba(233,32,56,.55);
  font-size: .55rem;
}
.or-orakel .or-quick:hover {
  color: #fff;
  border-color: rgba(233,32,56,.55);
  background: rgba(233,32,56,.07);
  box-shadow: inset 2px 0 0 var(--or-red);
  transform: translateX(2px);
}
.or-orakel .or-quick:hover::before {
  color: var(--or-red);
  text-shadow: 0 0 6px var(--or-red);
}

/* ══════════════════════════════════════════════════════════
   v29.40 — SORU ÇEŞMESİ sol panele taşındı.
   .or-term içinde chat (üst yarı) + SORU ÇEŞMESİ (alt yarı) split.
   Aynı zamanda sağ panel artık sadece FORM ÇAĞIRICI içeriyor.
══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   v30.2 — FAL TAŞLARI (yeni hazır soru menüsü)
   Eski .or-term-quicks/.or-quicks blokları kaldırıldı.
   Sol panelin alt yarısını dolduran 3x2 büyük "taş" grid.
═══════════════════════════════════════════════════════════════════ */
.or-stones {
  flex: 1 1 50%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--or-line);
  background:
    radial-gradient(ellipse at 50% 100%,
      rgba(233, 32, 56, .055) 0%,
      transparent 70%),
    linear-gradient(180deg,
      rgba(10, 8, 10, .98) 0%,
      rgba(6, 4, 6, 1) 100%);
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.or-stones::before {
  content: '';
  position: absolute;
  left: 0; top: 12%; bottom: 12%;
  width: 1px;
  background: linear-gradient(180deg,
    transparent,
    rgba(233, 32, 56, .5) 30%,
    rgba(233, 32, 56, .5) 70%,
    transparent);
  pointer-events: none;
  z-index: 1;
}
.or-stones::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  opacity: .35;
  z-index: 1;
}

/* Üst şerit — glyph + başlık + kategori chip'leri + karıştır */
.or-stones-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .8rem;
  background: rgba(0, 0, 0, .55);
  border-bottom: 1px solid var(--or-line);
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.or-stones-glyph {
  color: var(--or-red, #E92038);
  font-size: .85rem;
  text-shadow: 0 0 10px rgba(233, 32, 56, .6);
  animation: orStonesGlyph 4.2s ease-in-out infinite;
}
@keyframes orStonesGlyph {
  0%, 100% { opacity: .7; transform: rotate(0); }
  50%      { opacity: 1;  transform: rotate(180deg); }
}
.or-stones-title {
  font-family: var(--or-mono);
  font-size: .58rem;
  letter-spacing: .42em;
  color: #fff;
  font-weight: 500;
}

/* Kategori chip'leri */
.or-stones-cats {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 3px;
  margin-left: .35rem;
}
.or-stones-cat {
  padding: 3px 8px;
  font-family: var(--or-mono);
  font-size: .42rem;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 99px;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
  text-transform: uppercase;
}
.or-stones-cat:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .05);
}
.or-stones-cat.is-active {
  color: #fff;
  background: rgba(233, 32, 56, .18);
  border-color: var(--or-red, #E92038);
  box-shadow: 0 0 8px rgba(233, 32, 56, .35);
}

/* Karıştır */
.or-stones-shuffle {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .5);
  border: 1px solid rgba(233, 32, 56, .5);
  color: var(--or-red, #E92038);
  cursor: pointer;
  font-size: .65rem;
  transition: all .25s ease;
  padding: 0;
}
.or-stones-shuffle:hover {
  background: var(--or-red, #E92038);
  color: #fff;
  box-shadow: 0 0 12px rgba(233, 32, 56, .55);
  transform: rotate(180deg);
}
.or-stones-shuffle:active { transform: rotate(180deg) scale(0.92); }

/* Taş ızgarası — 3 sütun × 2 satır */
.or-stones-grid {
  list-style: none;
  margin: 0;
  padding: .7rem .65rem .85rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  z-index: 2;
  align-content: stretch;
}
.or-stones-grid.is-shuffling .or-stone {
  animation: orStoneShuffle .3s ease-in-out;
}
@keyframes orStoneShuffle {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(8px) scale(.92); filter: blur(2px); }
}

/* Tek bir taş */
.or-stone {
  --si: 0;
  position: relative;
  list-style: none;
  display: flex;
  opacity: 0;
  animation: orStoneIn .55s ease-out forwards;
  animation-delay: calc(var(--si) * 70ms);
}
.or-stone.is-used { animation: orStoneUsed .45s ease-out forwards; }
@keyframes orStoneIn {
  from { opacity: 0; transform: translateY(8px) scale(.94); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0)   scale(1);   filter: blur(0); }
}
@keyframes orStoneUsed {
  0%   { opacity: 1; transform: scale(1); }
  60%  { opacity: 1; transform: scale(1.06); box-shadow: 0 0 22px rgba(233,32,56,.7); }
  100% { opacity: 0; transform: scale(.85); filter: blur(3px); }
}

.or-stone-btn {
  position: relative;
  width: 100%;
  min-height: 64px;
  background:
    linear-gradient(155deg,
      rgba(20, 14, 16, .9) 0%,
      rgba(10, 8, 10, .96) 100%);
  border: 1px solid rgba(233, 32, 56, .22);
  color: rgba(255, 255, 255, .82);
  cursor: pointer;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: .78rem;
  line-height: 1.25;
  text-align: left;
  padding: .55rem .65rem .8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: .25rem;
  transition:
    background .22s ease,
    border-color .22s ease,
    transform .25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow .22s ease;
  overflow: hidden;
}
.or-stone-btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 50% 100%,
    rgba(233, 32, 56, .15) 0%,
    transparent 60%);
  opacity: .5;
  pointer-events: none;
  transition: opacity .25s ease;
}
.or-stone-btn::after {
  content: '';
  position: absolute;
  left: 0; top: 12%; bottom: 12%;
  width: 2px;
  background: linear-gradient(180deg,
    transparent,
    var(--or-red, #E92038) 40%,
    var(--or-red, #E92038) 60%,
    transparent);
  opacity: .55;
  pointer-events: none;
  transition: opacity .25s ease, width .25s ease;
}
.or-stone-glyph {
  position: absolute;
  top: .35rem;
  right: .45rem;
  font-family: 'Cinzel', serif;
  font-size: .8rem;
  color: rgba(233, 32, 56, .55);
  text-shadow: 0 0 6px rgba(233, 32, 56, .45);
  transition: transform .35s ease, color .25s ease;
  pointer-events: none;
}
.or-stone-text {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, .88);
  font-size: .82rem;
  line-height: 1.2;
  max-width: 100%;
  word-break: break-word;
  padding-right: 1rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.or-stone-cat {
  position: relative;
  z-index: 2;
  font-family: var(--or-mono);
  font-style: normal;
  font-size: .38rem;
  letter-spacing: .35em;
  color: rgba(255, 255, 255, .35);
  text-transform: uppercase;
  margin-top: auto;
}

/* HOVER */
.or-stone-btn:hover {
  background:
    linear-gradient(155deg,
      rgba(35, 16, 20, .95) 0%,
      rgba(18, 8, 10, .98) 100%);
  border-color: rgba(233, 32, 56, .65);
  transform: translateY(-2px);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, .55),
    0 0 14px rgba(233, 32, 56, .32);
}
.or-stone-btn:hover::before { opacity: 1; }
.or-stone-btn:hover::after { opacity: 1; width: 3px; }
.or-stone-btn:hover .or-stone-glyph {
  color: var(--or-red, #E92038);
  transform: rotate(180deg) scale(1.15);
  text-shadow: 0 0 12px rgba(233, 32, 56, .9);
}
.or-stone-btn:hover .or-stone-text { color: #fff; }
.or-stone-btn:hover .or-stone-cat  { color: rgba(255, 255, 255, .65); }
.or-stone-btn:active { transform: translateY(0) scale(.97); }

/* Responsive — 2 sütun */
@media (max-width: 480px) {
  .or-stones-grid { grid-template-columns: repeat(2, 1fr); }
  .or-stone-btn { font-size: .72rem; min-height: 58px; }
}

/* Sağ panel — yalnız FORM ÇAĞIRICI modu (v29.40 — artık kullanılmıyor,
   v29.41'de OYUN ODASI eklendi, .or-orakel--games kullanılıyor) */
.or-orakel--shaper-only .or-shaper {
  flex: 1 1 0;
  display: flex; flex-direction: column;
  border-top: none;
  min-height: 0;
}
.or-orakel--shaper-only .or-shaper-body {
  flex: 1 1 0;
  max-height: none;
  min-height: 0;
}

/* ══════════════════════════════════════════════════════════
   ŞEKİL DEĞİŞTİRİCİ (v27 — FORM ÇAĞIRICI)
   Manual morph invoker — uses .set-mb buttons that delegate
   to the existing handler in js/kaahin.js (line ~3607).
══════════════════════════════════════════════════════════ */
.or-shaper {
  flex-shrink: 0;
  border-top: 1px solid var(--or-line);
  background:
    linear-gradient(180deg, rgba(233,32,56,.04) 0%, transparent 40%),
    #060608;
  position: relative; z-index: 2;
  font-family: var(--or-mono);
}
.or-shaper-head {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .8rem;
  border-bottom: 1px solid var(--or-line);
  background: rgba(0,0,0,.35);
}
.or-shaper-glyph {
  color: var(--or-red);
  font-size: .85rem;
  text-shadow: 0 0 8px rgba(233,32,56,.6);
  animation: shaperGlyphPulse 3.6s ease-in-out infinite;
}
@keyframes shaperGlyphPulse {
  0%,100% { opacity: .65; }
  50%     { opacity: 1;   text-shadow: 0 0 14px rgba(233,32,56,.85); }
}
.or-shaper-title {
  flex: 1;
  font-size: .55rem;
  letter-spacing: .32em;
  color: rgba(255,255,255,.78);
  text-transform: uppercase;
}
.or-shaper-collapse {
  background: transparent; border: 1px solid var(--or-line);
  color: var(--or-dim);
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .18s;
  border-radius: 2px;
}
.or-shaper-collapse:hover {
  color: var(--or-red); border-color: rgba(233,32,56,.4);
}
.or-shaper-collapse i { font-size: .55rem; transition: transform .25s; }
.or-shaper.is-collapsed .or-shaper-collapse i { transform: rotate(-90deg); }
.or-shaper.is-collapsed .or-shaper-body { display: none; }

.or-shaper-body {
  padding: .55rem .7rem .7rem;
  display: flex; flex-direction: column;
  gap: .55rem;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.or-shaper-row {
  display: flex; flex-direction: column;
  gap: .3rem;
}
.or-shaper-rowlabel {
  font-size: .42rem;
  letter-spacing: .28em;
  color: var(--or-dim);
  padding-left: .15rem;
}
.or-shaper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
/* v27.1 — "ÖZ" satırı 3 butona düştüğü için tek başına 3-kolonlu hizalanır */
.or-shaper-row[data-row="meta"] .or-shaper-grid {
  grid-template-columns: repeat(3, 1fr);
}
/* v27.23 — MİSTİK satırı 2 butona düştü (MANDALA kaldırıldı). 2-kolon grid. */
.or-shaper-row[data-row="mystic"] .or-shaper-grid {
  grid-template-columns: repeat(2, 1fr);
}
/* v27.86 — SİLÜET satırı 6 butonlu (KAHIN 4 silindi). 6-kolon. */
.or-shaper-row[data-row="silhouettes"] .or-shaper-grid {
  grid-template-columns: repeat(6, 1fr);
}

.or-shaper-grid .set-mb {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--or-line);
  color: var(--or-dim-2);
  padding: .5rem .25rem;
  display: flex; flex-direction: column;
  align-items: center; gap: .25rem;
  font-family: var(--or-mono);
  cursor: pointer;
  transition: all .18s ease;
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}
.or-shaper-grid .set-mb::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(233,32,56,.35), transparent 60%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.or-shaper-grid .set-mb i { font-size: .82rem; transition: all .2s; }
.or-shaper-grid .set-mb span {
  font-size: .4rem;
  letter-spacing: .18em;
}
.or-shaper-grid .set-mb:hover {
  color: #fff;
  border-color: rgba(233,32,56,.5);
  background: rgba(233,32,56,.05);
  transform: translateY(-1px);
}
.or-shaper-grid .set-mb:hover::before { opacity: 1; }
.or-shaper-grid .set-mb:hover i {
  color: var(--or-red);
  text-shadow: 0 0 10px rgba(233,32,56,.7);
  transform: scale(1.08);
}
.or-shaper-grid .set-mb:active {
  transform: translateY(0) scale(.97);
  background: rgba(233,32,56,.12);
}
/* Brief "fired" flash, added via JS for .25s */
.or-shaper-grid .set-mb.is-fired {
  border-color: var(--or-red);
  background: rgba(233,32,56,.18);
  box-shadow: 0 0 14px rgba(233,32,56,.4) inset;
}
.or-shaper-grid .set-mb.is-fired i {
  color: var(--or-red);
  text-shadow: 0 0 12px rgba(233,32,56,.9);
}
/* FACE button — slightly distinct (returns to face state) */
.or-shaper-grid .set-mb.or-shaper-face {
  background: rgba(56,189,248,.04);
  border-color: rgba(56,189,248,.18);
}
.or-shaper-grid .set-mb.or-shaper-face:hover {
  border-color: rgba(56,189,248,.55);
  background: rgba(56,189,248,.08);
}
.or-shaper-grid .set-mb.or-shaper-face:hover::before {
  background: radial-gradient(circle at 50% 120%, rgba(56,189,248,.35), transparent 60%);
}
.or-shaper-grid .set-mb.or-shaper-face:hover i {
  color: var(--or-cyan);
  text-shadow: 0 0 10px rgba(56,189,248,.7);
}

.or-orakel-toggles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  background: var(--or-line);
  border-top: 1px solid var(--or-line);
  flex-shrink: 0;
  position: relative; z-index: 2;
}
/* v27.27 — SES/ORBIT/MORPH butonları küçültüldü. */
.or-orakel-toggles .set-tg {
  background: #060608;
  padding: .42rem .3rem;
  border: none;
  font-family: var(--or-mono);
  color: var(--or-dim);
  cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; gap: .22rem;
  transition: all .18s;
}
.or-orakel-toggles .set-tg i { font-size: .62rem; }
.or-orakel-toggles .set-tg-k {
  font-size: .34rem;
  letter-spacing: .18em;
}
.or-orakel-toggles .set-tg:hover {
  color: #fff;
  background: rgba(255,255,255,.03);
}
.or-orakel-toggles .set-tg.is-active {
  color: var(--or-red);
  background: rgba(233,32,56,.08);
}
.or-orakel-toggles .set-tg.is-active i {
  text-shadow: 0 0 6px rgba(233,32,56,.5);
}

/* v29.7 — HUD'daki SES butonu (Nefes yanı)
   v29.16 — Info butonuna benzer kare/gri stil. Tüm renkler nötr gri,
   sadece is-active iken hafif beyaz vurgu (kırmızı değil). */
.hud-seg.seg-sound {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .65rem;
}
.hud-seg.seg-sound .hud-sound-btn {
  /* v29.16 — info-btn ile aynı kare boyut + gri palet */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  gap: 0;
  padding: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  font-family: var(--or-mono);
  transition: all .18s ease;
  line-height: 1;
}
.hud-seg.seg-sound .hud-sound-btn i { font-size: 1rem; }
/* v29.16 — Etiket gizlendi (info butonu gibi sadece ikon) */
.hud-seg.seg-sound .hud-sound-btn .set-tg-k {
  display: none;
}
.hud-seg.seg-sound .hud-sound-btn:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.25);
}
.hud-seg.seg-sound .hud-sound-btn.is-active {
  /* v29.16 — Aktif (ses açık) iken nötr beyaz vurgu — KIRMIZI DEĞİL */
  color: #fff;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.10);
}
.hud-seg.seg-sound .hud-sound-btn.is-active i {
  text-shadow: 0 0 6px rgba(255,255,255,.35);
}

/* ══════════════════════════════════════════════════════════
   v29.43 — SES BUTONU = INFO BUTONU STİLİ
   Kırmızı borderlı siyah kare içinde ses ikonu.
   (Önceki v29.41 dairesel orb stili kullanıcı talebiyle kaldırıldı.)
══════════════════════════════════════════════════════════ */
.hud-seg.seg-sound--info {
  padding: 0 .55rem;
}
.hud-seg.seg-sound .hud-sound-btn--info {
  /* v30.1 — %20 küçültüldü (38px → 30px) */
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(233, 32, 56, .55);
  border-radius: 0;
  color: var(--or-red);
  cursor: pointer;
  font-family: var(--or-mono);
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
  padding: 0; gap: 0;
}
.hud-seg.seg-sound .hud-sound-btn--info i { font-size: .82rem; }
.hud-seg.seg-sound .hud-sound-btn--info .set-tg-k {
  display: none;
}
.hud-seg.seg-sound .hud-sound-btn--info:hover {
  background: var(--or-red);
  color: #fff;
  border-color: var(--or-red);
  box-shadow: 0 0 12px rgba(233, 32, 56, .5);
}
/* Aktif = ses açık = INFO butonu aktif görünümü (kırmızı dolgu) */
.hud-seg.seg-sound .hud-sound-btn--info.is-active {
  background: rgba(233, 32, 56, .12);
  border-color: var(--or-red);
  color: var(--or-red);
}
.hud-seg.seg-sound .hud-sound-btn--info.is-active:hover {
  background: var(--or-red);
  color: #fff;
}
/* Pasif (ses kapalı) iken: daha silik, beyaz çizgi ikon */
.hud-seg.seg-sound .hud-sound-btn--info:not(.is-active) {
  background: rgba(0, 0, 0, .55);
  border-color: rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .45);
}
.hud-seg.seg-sound .hud-sound-btn--info:not(.is-active):hover {
  background: rgba(233, 32, 56, .12);
  border-color: rgba(233, 32, 56, .4);
  color: var(--or-red);
  box-shadow: none;
}

/* v30.0 — FORM ÇAĞIRICI HUD butonu ve modal kaldırıldı.
   Şekiller artık sağdaki kalıcı .or-shapes-rail panelinden seçiliyor
   (bkz. css/kaahin-shapes.css). */

/* Sağ panelden modal sistemi de kaldırıldı (v30.0). */
.or-orakel--games .or-shaper,
#orShaper[hidden] { display: none !important; }

/* Eski compact-orb stili kalıntısı — boş geçişim için */
.hud-seg.seg-sound--compact {
  padding: 0 .45rem;
}
.hud-seg.seg-sound .hud-sound-btn--orb {
  position: relative;
  width: 26px; height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.08), transparent 60%),
    rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.7);
  display: inline-flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .22s, border-color .22s, color .22s, transform .22s,
              box-shadow .22s;
  overflow: hidden;
  flex-shrink: 0;
}
.hud-seg.seg-sound .hud-sound-btn--orb i {
  font-size: .68rem;
  position: relative;
  z-index: 3;
  transition: text-shadow .22s, transform .25s;
}
/* Etiket gizli (orb modunda ikon yeterli) */
.hud-seg.seg-sound .hud-sound-btn--orb .set-tg-k {
  display: none;
}

/* Sabit halka (dış çember) */
.hud-seg.seg-sound .hud-sound-btn--orb .snd-ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
  z-index: 1;
  transition: border-color .25s ease;
}
/* İki ses dalgası halkası (yalnız is-active iken görünür) */
.hud-seg.seg-sound .hud-sound-btn--orb .snd-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.0);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}

/* Hover (her durumda) */
.hud-seg.seg-sound .hud-sound-btn--orb:hover {
  color: #fff;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.14), transparent 60%),
    rgba(0,0,0,.55);
  border-color: rgba(255,255,255,.35);
  transform: scale(1.06);
}
.hud-seg.seg-sound .hud-sound-btn--orb:hover .snd-ring {
  border-color: rgba(255,255,255,.22);
}

/* AKTİF (ses açık) — sürekli dalga animasyonu */
.hud-seg.seg-sound .hud-sound-btn--orb.is-active {
  color: #fff;
  border-color: rgba(255,255,255,.45);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.16), transparent 60%),
    rgba(20,20,26,.85);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 0 10px rgba(255,255,255,.10);
}
.hud-seg.seg-sound .hud-sound-btn--orb.is-active i {
  text-shadow: 0 0 8px rgba(255,255,255,.5);
}
.hud-seg.seg-sound .hud-sound-btn--orb.is-active .snd-ring {
  border-color: rgba(255,255,255,.28);
  animation: sndBreath 2.6s ease-in-out infinite;
}
.hud-seg.seg-sound .hud-sound-btn--orb.is-active .snd-wave {
  border-color: rgba(255,255,255,.35);
  animation: sndWave 2.2s ease-out infinite;
}
.hud-seg.seg-sound .hud-sound-btn--orb.is-active .snd-wave-2 {
  animation-delay: 1.1s;
}

/* Sessiz (kullanıcı kapatınca .is-active kalkar) — silik, çizgi gibi */
.hud-seg.seg-sound .hud-sound-btn--orb:not(.is-active) {
  color: rgba(255,255,255,.4);
  border-color: rgba(255,255,255,.12);
}
.hud-seg.seg-sound .hud-sound-btn--orb:not(.is-active) i {
  /* sessizken hafifçe küçük + gri */
  opacity: 0.7;
}

@keyframes sndBreath {
  0%, 100% { opacity: 0.5; transform: scale(1);    }
  50%      { opacity: 0.9; transform: scale(1.05); }
}
@keyframes sndWave {
  0%   { opacity: 0;   transform: scale(1);   border-width: 1px; }
  20%  { opacity: 0.7; }
  100% { opacity: 0;   transform: scale(1.65); border-width: 0.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .hud-seg.seg-sound .hud-sound-btn--orb.is-active .snd-ring,
  .hud-seg.seg-sound .hud-sound-btn--orb.is-active .snd-wave {
    animation: none !important;
  }
  .hud-seg.seg-sound .hud-sound-btn--orb.is-active .snd-wave {
    opacity: 0;
  }
}

/* ══════════════════════════════════════════════════════════
   SETTINGS PANEL (RIGHT) — replaces old biomonitor [LEGACY v25]
   Korunuyor, art\u0131k kullan\u0131lm\u0131yor. v26'da .or-orakel devrald\u0131.
══════════════════════════════════════════════════════════ */
.or-settings {
  display: flex; flex-direction: column;
  background: var(--or-panel);
  border-left: 1px solid var(--or-line);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
  padding: 0;
}
.or-settings::-webkit-scrollbar { width: 3px; }
.or-settings::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); }

.set-head {
  display: flex; align-items: center; gap: .55rem;
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--or-line);
  flex-shrink: 0;
  font-family: var(--or-mono);
}
.set-h-id {
  flex: 1;
  font-size: .46rem;
  letter-spacing: .26em;
  color: var(--or-dim);
}
.set-h-led {
  width: 5px; height: 5px;
  background: var(--or-red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--or-red);
  animation: bmLed 1.8s ease-in-out infinite;
}
@keyframes bmLed { 50% { opacity: .25; } }

.set-block {
  padding: .7rem .9rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  display: flex; flex-direction: column; gap: .45rem;
}
.set-row-head {
  display: flex; align-items: center; justify-content: space-between;
}
.set-k {
  font-family: var(--or-mono);
  font-size: .46rem;
  letter-spacing: .22em;
  color: var(--or-dim);
  text-transform: uppercase;
}
.set-v {
  font-family: var(--or-mono);
  font-size: .54rem;
  letter-spacing: .1em;
  color: #fff;
}

/* SLIDER */
.set-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px;
  background: rgba(255,255,255,.1);
  outline: none;
  cursor: pointer;
  border-radius: 2px;
}
.set-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px;
  background: var(--or-red);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(233,32,56,.6);
  cursor: pointer;
}
.set-slider::-moz-range-thumb {
  width: 12px; height: 12px;
  background: var(--or-red);
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 6px rgba(233,32,56,.6);
  cursor: pointer;
}

/* TOGGLES grid */
.set-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem;
  padding: .7rem .9rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.set-tg {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .3rem;
  padding: .55rem .3rem;
  background: transparent;
  border: 1px solid var(--or-line-2);
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
  color: var(--or-dim-2);
}
.set-tg i { font-size: .85rem; }
.set-tg-k {
  font-family: var(--or-mono);
  font-size: .42rem;
  letter-spacing: .2em;
  color: var(--or-dim);
}
.set-tg:hover { border-color: rgba(255,255,255,.3); }
.set-tg.is-active {
  border-color: var(--or-red);
  background: rgba(233,32,56,.08);
  color: #fff;
}
.set-tg.is-active .set-tg-k { color: #fff; }
.set-tg.is-active i { color: var(--or-red); text-shadow: 0 0 6px rgba(233,32,56,.6); }

/* DIALOGUE MODES */
.set-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .3rem;
}
.set-mode {
  padding: .42rem .35rem;
  background: transparent;
  border: 1px solid var(--or-line-2);
  font-family: var(--or-mono);
  font-size: .46rem;
  letter-spacing: .2em;
  color: var(--or-dim-2);
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
.set-mode:hover { border-color: rgba(255,255,255,.3); }
.set-mode.is-active {
  border-color: var(--or-red);
  background: rgba(233,32,56,.08);
  color: #fff;
}

/* MORPH TRIGGERS */
.set-morphs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .3rem;
}
.set-mb {
  display: flex; align-items: center; gap: .4rem;
  padding: .42rem .55rem;
  background: transparent;
  border: 1px solid var(--or-line-2);
  font-family: var(--or-mono);
  font-size: .46rem;
  letter-spacing: .14em;
  color: var(--or-dim-2);
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
.set-mb i { font-size: .65rem; color: var(--or-red); }
.set-mb:hover { border-color: rgba(255,255,255,.3); color: #fff; }
.set-mb:active { background: rgba(233,32,56,.12); border-color: var(--or-red); }

.set-v-hint {
  font-size: .38rem !important;
  letter-spacing: .08em !important;
  color: var(--or-dim) !important;
  text-transform: none !important;
  max-width: 60%;
  text-align: right;
  line-height: 1.15;
}
.set-hint-line {
  margin-top: .35rem;
  font-family: var(--or-mono);
  font-size: .42rem;
  letter-spacing: .04em;
  color: rgba(233,32,56,.55);
  line-height: 1.3;
  border-top: 1px dashed rgba(233,32,56,.18);
  padding-top: .35rem;
}

/* EMOTION buttons */
.set-emos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .3rem;
}
.cp-sw {
  display: flex; flex-direction: column; align-items: center;
  gap: .25rem;
  padding: .42rem .2rem;
  background: transparent;
  border: 1px solid var(--or-line-2);
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.cp-sw-led {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  transition: background .25s, box-shadow .25s;
}
.cp-sw-k {
  font-family: var(--or-mono);
  font-size: .4rem;
  letter-spacing: .2em;
  color: var(--or-dim-2);
  text-transform: uppercase;
}
.cp-sw:hover { border-color: rgba(255,255,255,.3); }
.cp-sw.is-active { border-color: var(--or-red); background: rgba(233,32,56,.06); }
.cp-sw.is-active .cp-sw-led { background: var(--or-red); box-shadow: 0 0 6px var(--or-red); }
.cp-sw.is-active .cp-sw-k   { color: #fff; }

/* ══════════════════════════════════════════════════════════
   HUD — Brief Breaker pattern (#orHud cloned from #bbHud)
══════════════════════════════════════════════════════════ */
#orHud {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--or-hud);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  padding: 0 clamp(.7rem, 1.8vw, 1.8rem);
  background: linear-gradient(180deg, rgba(8,8,8,.99) 0%, rgba(2,2,2,1) 100%);
  border-top: 2px solid rgba(233,32,56,.25);
  /* AGENT-RULES KURAL 7: HUD'da kırmızı glow YOK — sade nötr çerçeve */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
  z-index: 9100;
}
/* HUD alt köşe glow çizgileri kaldırıldı — IN-LAB standart */
#orHud::before, #orHud::after { content: none; }

/* LEFT title (injected by inlab-hud.js) */
#orHud .inlab-hud__title {
  display: flex; flex-direction: row; align-items: center; flex-shrink: 0;
  padding: 0 1.1rem;
  border-right: 1px solid rgba(255,255,255,.07);
  gap: .38rem;
}
/* v27.27 — HUD başlık + segments %15 küçültüldü.
   v29.16 — KULLANICI TALEBİ: KAAHIN başlığı Brief Breaker'ın sol-alt başlık
   boyutuna eşitlendi. Brief Breaker inlab-hud.css'in standart .inlab-hud__title-text
   stilini (1.38rem) kullanıyor → KAAHIN da artık 1.38rem. */
#orHud .inlab-hud__title-text {
  font-family: var(--or-sf);
  /* v68.37 — FREE WALL HUD ba\u015fl\u0131k boyu ile e\u015fitlendi: 1.38rem \u2192 1.47rem */
  font-size: 1.47rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em; line-height: 1;
  white-space: nowrap;
  color: #fff;
}
#orHud .inlab-hud__title-text em {
  font-style: normal;
  color: var(--or-red);
  text-shadow: 0 0 14px rgba(233,32,56,.6);
}
/* v27.27 — KAAHIN'in IN harfleri kırmızı */
#orHud .inlab-hud__title-text .kk-red {
  color: var(--or-red);
  text-shadow: 0 0 10px rgba(233,32,56,.55);
}

/* v86 — KULLANICI TALEBİ: HUD'daki KAAHIN üstündeki BETA rozeti KALDIRILDI.
   (BETA yalnızca topbar'da standart .inlab-beta olarak gösterilir.) */
#orHud .inlab-hud__title-text::before { content: none !important; display: none !important; }

/* CENTER stats cluster */
#orHud .hud-center {
  display: flex; align-items: stretch; justify-content: center;
  height: 100%; gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
#orHud .hud-center::-webkit-scrollbar { display: none; }

#orHud .hud-seg {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 .81rem;
  border-right: 1px solid rgba(255,255,255,.06);
  gap: .15rem;
  flex-shrink: 0;
}
#orHud .hud-seg:first-child { border-left: 1px solid rgba(255,255,255,.06); }

#orHud .hud-lbl {
  font-family: var(--or-pp);
  font-size: .42rem; letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255,255,255,.32);
  line-height: 1;
  display: block; text-align: center;
}

#orHud .hud-stat__val {
  font-family: var(--or-sf);
  font-size: 1.32rem; font-weight: 700;
  color: #fff; line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
}
#orHud .hud-stat__val.busy  { color: var(--or-yellow); }
#orHud .hud-stat__val.live  { color: var(--or-red); }
#orHud .hud-stat__val.err   { color: var(--or-red); }
#orHud .hud-stat__val.angry { color: var(--or-orange); }
#orHud .hud-stat__val.happy { color: var(--or-green); }
#orHud .hud-stat__val.sad   { color: var(--or-cyan); }

.hud-fps {
  font-family: var(--or-mono);
  font-size: .36rem; letter-spacing: .14em;
  color: var(--or-dim);
  margin-left: .22rem;
}

/* Canvas-bearing segments */
#orHud .seg-canvas { min-width: 94px; }
#orHud .hud-canvas-row {
  display: flex; align-items: center; gap: .30rem;
}
#orHud .hud-canvas-row canvas {
  display: block;
  height: 17px;
}
#orHud .hud-canvas-row canvas#bmTherm,
#orHud .hud-canvas-row canvas#bmMem { height: 7px; }
#orHud .hud-canvas-v {
  font-family: var(--or-mono);
  font-size: .44rem; letter-spacing: .08em;
  color: #fff;
  min-width: 19px; text-align: right;
}

/* RIGHT btns — v26: now uses .inlab-hud__actions (injected by inlab-hud.js)
   Legacy .hud-btn-group rule kept for safety (no longer in DOM). */
#orHud .inlab-hud__actions {
  display: flex; gap: .4rem; flex-shrink: 0; align-items: center;
  padding: 0 1.1rem;
  border-left: 1px solid rgba(255,255,255,.07);
}
#orHud .inlab-hud__info-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: rgba(233,32,56,.07);
  border: 1px solid rgba(233,32,56,.35);
  color: var(--or-red);
  cursor: pointer;
  transition: all .18s;
}
#orHud .inlab-hud__info-btn:hover {
  background: var(--or-red);
  color: #fff;
  border-color: var(--or-red);
  box-shadow: 0 0 12px rgba(233,32,56,.5);
}
#orHud .inlab-hud__info-btn i { font-size: 1rem; }
#orHud .inlab-hud__info-btn.active {
  background: var(--or-red);
  color: #fff;
}

#orHud .hud-btn-group {
  display: flex; gap: .34rem; flex-shrink: 0; align-items: center;
  padding-left: .9rem;
  border-left: 1px solid rgba(255,255,255,.06);
}
#orHud .nm-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .12rem;
  padding: .32rem .7rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.09);
  cursor: pointer;
  color: rgba(255,255,255,.5);
  transition: color .18s, border-color .18s, background .18s;
  white-space: nowrap; flex-shrink: 0;
}
#orHud .nm-btn:hover  { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; }
#orHud .nm-btn.active { color: var(--or-red); border-color: rgba(233,32,56,.3); background: rgba(233,32,56,.06); }
#orHud .nm-btn i { font-size: .72rem; }
#orHud .nm-btn-lbl { font-family: var(--or-pp); font-size: .32rem; letter-spacing: .18em; text-transform: uppercase; line-height: 1; opacity: .7; }

#orHud #btnInfo {
  border-color: rgba(233,32,56,.35);
  background: rgba(233,32,56,.07);
  color: var(--or-red);
}
#orHud #btnInfo:hover { background: var(--or-red); color: #fff; border-color: var(--or-red); }
#orHud #btnInfo i { font-size: .88rem; }

/* ══════════════════════════════════════════════════════════
   LOG POPUP
══════════════════════════════════════════════════════════ */
.or-logpopup {
  position: fixed;
  right: 280px;          /* aligned just left of settings panel */
  bottom: calc(var(--or-hud) + 8px);
  width: 280px; max-height: 240px;
  background: rgba(8,8,8,.97);
  border: 1px solid rgba(233,32,56,.35);
  box-shadow: 0 8px 32px rgba(0,0,0,.6), 0 0 24px rgba(233,32,56,.18);
  display: none; flex-direction: column;
  z-index: 9200;
  border-radius: 2px;
}
.or-logpopup.open { display: flex; }
.or-logpopup__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem .7rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--or-mono);
  font-size: .5rem; letter-spacing: .22em;
  color: var(--or-dim-2);
}
.or-logpopup__head i { color: var(--or-red); margin-right: .35rem; }
.or-logpopup__head button {
  background: transparent; border: none; color: var(--or-dim);
  cursor: pointer; padding: .2rem;
}
.or-logpopup__head button:hover { color: #fff; }
.or-logpopup__body {
  flex: 1;
  overflow-y: auto;
  padding: .5rem .7rem;
  display: flex; flex-direction: column;
  gap: .15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.or-logpopup__body::-webkit-scrollbar { width: 3px; }
.or-logpopup__body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); }
.bm-logrow {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: .35rem;
  font-family: var(--or-mono);
  font-size: .42rem;
  letter-spacing: .04em;
  line-height: 1.3;
}
.bm-logt   { color: rgba(255,255,255,.3); }
.bm-logtag { color: var(--or-red); letter-spacing: .14em; }
.bm-logm   { color: rgba(255,255,255,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .or-app { grid-template-columns: 320px 1fr 250px; }
  #orHud .hud-stat__val { font-size: 1.3rem; }
}
@media (max-width: 1024px) {
  .or-app { grid-template-columns: 280px 1fr 230px; }
}
@media (max-width: 900px) {
  .or-app { grid-template-columns: 1fr; grid-template-rows: 1fr 260px; }
  .or-settings { display: none; }
  .or-term { display: none; }
}
