/* LIVE CAPTURE SLICE 1A — "Thought Journal" entry point + form.
   Reuses aurora-experience-layer.css's --ax-* tokens and aurora-modal.css's
   card/backdrop treatment so this reads as one system, not a second style.
   Entirely additive: a small fixed-position button plus an overlay, both
   independent of table geometry. No board/seat/pot layout is touched. */

.lc-fab{
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 6200; /* above table chrome, below aurora-modal (9500) and aurora-experience overlays */
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--ax-line, rgba(201,160,74,.24));
  background: var(--ax-surface-soft, rgba(8,16,20,.78));
  color: var(--ax-text, #f4f1e8);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 8px 22px rgba(0,0,0,.34);
  cursor: pointer;
  transition: transform 160ms var(--ax-ease, ease), border-color 160ms ease;
}
.lc-fab:hover{ border-color: var(--ax-gold, #c9a04a); }
.lc-fab:focus-visible{ outline: 2px solid var(--ax-gold-hi, #e2c36e); outline-offset: 2px; }
.lc-fab:active{ transform: translateY(1px); }
.lc-fab[hidden]{ display: none; }
.lc-fab__icon{ font-size: 15px; line-height: 1; }

.lc-overlay{
  position: fixed;
  inset: 0;
  z-index: 6400;
  display: grid;
  place-items: center;
  padding:
    max(14px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  background: rgba(2,6,9,.56);
  backdrop-filter: blur(6px) saturate(.82);
  -webkit-backdrop-filter: blur(6px) saturate(.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.lc-overlay.is-visible{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.lc-card{
  width: min(90vw, 440px);
  max-height: min(88vh, 640px);
  overflow-y: auto;
  border: 1px solid var(--ax-line, rgba(201,160,74,.24));
  border-radius: 18px;
  padding: clamp(16px, 3vh, 22px) clamp(16px, 4vw, 24px);
  color: var(--ax-text, #f4f1e8);
  background:
    linear-gradient(145deg, rgba(21,29,35,.97), rgba(5,10,14,.97)),
    var(--ax-surface, rgba(7,12,17,.94));
  box-shadow: 0 24px 70px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
  transform: translateY(12px) scale(.98);
  transition: transform 220ms var(--ax-ease, cubic-bezier(.22,.82,.3,1));
}
.is-visible .lc-card{ transform: translateY(0) scale(1); }

.lc-title{ font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.lc-timing{
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ax-muted, #91a0ad);
  letter-spacing: .01em;
}

.lc-field-label{
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ax-muted, #91a0ad);
}

.lc-text{
  width: 100%;
  min-height: 64px;
  resize: vertical;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--ax-text, #f4f1e8);
  font: inherit;
  font-size: 13px;
  padding: 10px 12px;
}
.lc-text:focus-visible{ outline: 2px solid var(--ax-gold-hi, #e2c36e); outline-offset: 1px; }

.lc-chips{ display: flex; flex-wrap: wrap; gap: 6px; min-height: 1px; }

.lc-chip{
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color: var(--ax-text, #f4f1e8);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}
.lc-chip:focus-visible{ outline: 2px solid var(--ax-gold-hi, #e2c36e); outline-offset: 2px; }
.lc-chip.is-selected{
  border-color: var(--ax-gold, #c9a04a);
  background: linear-gradient(180deg, rgba(234,215,140,.22), rgba(199,155,66,.14));
  color: var(--ax-gold-hi, #e2c36e);
}

.lc-status{
  margin-top: 12px;
  min-height: 16px;
  font-size: 12px;
  font-weight: 600;
}
.lc-status--error{ color: #e08a8a; }
.lc-status--success{ color: #8fd6a0; }

.lc-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.lc-btn{
  min-width: 88px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.lc-btn--save{
  border: 1px solid rgba(226,195,110,.64);
  color: #17130a;
  background: linear-gradient(180deg, #ead78c, #c79b42);
  box-shadow: 0 8px 22px rgba(0,0,0,.36);
}
.lc-btn--save:disabled{ opacity: .6; cursor: default; }
.lc-btn--save:active:not(:disabled){ transform: translateY(1px); }
.lc-btn--cancel{
  border: 1px solid rgba(255,255,255,.16);
  color: var(--ax-text, #f4f1e8);
  background: rgba(255,255,255,.06);
}
.lc-btn--cancel:active{ transform: translateY(1px); }

@media (max-width: 480px), (max-height: 420px){
  .lc-card{ padding: 14px 16px; border-radius: 14px; }
  .lc-btn{ min-height: 40px; }
  .lc-fab{ padding: 0 12px 0 9px; min-height: 38px; }
}

/* Landscape phones (this app is landscape-only, per its own architecture
   decision) with a short viewport height — keep the card from ever
   exceeding the visible area even with the on-screen keyboard open. */
@media (max-height: 380px){
  .lc-card{ max-height: 94vh; }
  .lc-text{ min-height: 44px; }
}
