/* ── INFO PANEL & DIALOGUE ── */

/* ── AMBIENT INFO ── */
#info-ambient {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#info-location {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: var(--teal);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

#info-tip {
  font-family: var(--font-zh);
  font-size: 0.67rem;
  color: var(--text-dim);
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ── DIALOGUE BOX — film subtitle aesthetic ── */
#dialogue-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Speaker row */
.dialogue-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

#dialogue-portrait {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  position: relative;
  /* Square, not round */
}

/* Corner marks on portrait */
#dialogue-portrait::before,
#dialogue-portrait::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: var(--teal);
  border-style: solid;
  opacity: 0.6;
}
#dialogue-portrait::before {
  top: -1px; left: -1px;
  border-width: 1px 0 0 1px;
}
#dialogue-portrait::after {
  bottom: -1px; right: -1px;
  border-width: 0 1px 1px 0;
}

#dialogue-speaker {
  font-family: var(--font-serif);
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--magenta);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Dialogue text */
#dialogue-text {
  font-family: var(--font-zh);
  font-size: 0.76rem;
  color: var(--text-bright);
  line-height: 1.5;
  padding-left: 46px; /* align under speaker label */
}

/* Choices */
#dialogue-choices {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 46px;
  margin-top: 2px;
}

.choice-btn {
  background: transparent;
  border: none;
  border-left: 2px solid var(--border);
  color: var(--teal);
  font-family: var(--font-zh);
  font-size: 0.7rem;
  padding: 3px 10px;
  text-align: left;
  cursor: pointer;
  pointer-events: all;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  letter-spacing: 0.01em;
}
.choice-btn::before {
  content: '▸ ';
  opacity: 0.5;
  font-size: 0.68rem;
}
.choice-btn:active {
  border-color: var(--teal);
  background: var(--teal-glow);
  color: var(--teal);
}

/* Advance indicator */
#dialogue-advance {
  width: 100%;
  margin-top: 6px;
  padding: 4px 0 2px 46px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  pointer-events: all;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes blink-advance {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 1; color: var(--teal); }
}
#dialogue-advance { animation: blink-advance 1.4s ease-in-out infinite; }

/* ── ACTION BUTTONS ── */
.action-btn {
  flex: 1;
  height: 100%;
  max-width: 88px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(0, 232, 184, 0.05);
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  pointer-events: all;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.action-btn:last-child { border-right: none; }

.action-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.action-btn:active {
  color: var(--teal);
  background: var(--teal-glow);
}

.action-btn:active::after {
  transform: scaleX(1);
}

.btn-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.btn-label {
  font-family: var(--font-mono);
  font-size: 0.59rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
