/* MagicAIl Table — styles: the action log and the webcam.
   The styles are split into files in their old order (build 71, before: one style.css); index.html loads them in
   this order, so later rules still win over earlier ones. */

/* ---------- Log ---------- */


.side-panel .back-link { margin-top: 0; }

.log-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.log-panel h3 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 16px;
}

.log {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 42vh;
  overflow-y: auto;
  font-size: 13px;
}

/* ---------- Webcam ---------- */

.webcam-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
}

.webcam-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #070a08;
  cursor: zoom-in;
}

.webcam-frame video,
.webcam-big-box video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #070a08;
}

.webcam-off {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.webcam-hint {
  margin: 6px 0 2px;
  font-size: 12px;
  color: var(--muted);
}

.webcam-panel .btn-link { font-size: 13px; }

.webcam-big-box {
  position: relative;
  width: min(1400px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.webcam-big-box video {
  max-height: 80vh;
  border-radius: 8px;
  cursor: zoom-out;
}

.log li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.log-info { color: var(--muted); }
.log-roll { color: var(--gold); }
.log b { color: var(--text); }

.log-label {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.log-attack .log-label { background: var(--red); color: #fff; }
.log-cast .log-label { background: #5fb3ff; color: #0b1a2a; }
.log-life .log-label { background: var(--gold); color: #1a1408; }
.log-roll .log-label { background: var(--surface-2); color: var(--gold); border: 1px solid var(--gold); }
.log-attack { border-left: 3px solid var(--red); padding-left: 8px !important; }
.log-cast { border-left: 3px solid #5fb3ff; padding-left: 8px !important; }

/* Build 102: the text of a whisper the player wrote or got, after its log line. */
.log-whisper-text { font-style: italic; color: var(--text); }
