/*
 * Two moods, one theme:
 *  - Default (play.php, and the nav everywhere): low-key / background-GM — quiet, calm,
 *    doesn't compete with the physical game on the table (docs/FEATURE-SUGGESTIONS.md).
 *  - .tp-landing (index.php only — nobody's mid-session when they see this): full
 *    atmosphere. Same palette, more presence: gradient glow, brand type, icon work.
 */

:root {
  --tp-bg: #15171c;
  --tp-surface: #1f232a;
  --tp-surface-2: #262b33;
  --tp-border: #2c313a;
  --tp-text: #e7e9ec;
  --tp-muted: #8a919c;
  --tp-accent: #c9a94f;       /* warm brass/gold — quiet, not a saturated "app" blue */
  --tp-accent-bright: #e6c778;
  --tp-accent-dim: rgba(201, 169, 79, 0.18);
  --font-brand: 'Cinzel', 'Georgia', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background:
    linear-gradient(180deg, rgba(21, 23, 28, 0.90), rgba(21, 23, 28, 0.94)),
    url('../images/backgroundmain.jpg') center 20% / cover no-repeat fixed,
    var(--tp-bg);
  color: var(--tp-text);
  font-family: var(--font-body);
}

/* ── Nav (every page) — brand mark gets a touch of gold, otherwise stays plain ───── */

.tp-navbar {
  background: var(--tp-surface);
  border-bottom: 1px solid var(--tp-border);
}

.tp-brand {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--tp-text);
}
.tp-brand i {
  color: var(--tp-accent);
  margin-right: 0.4rem;
}

/* ── Landing page atmosphere (index.php only) ────────────────────────────────────── */

body.tp-landing {
  /* Lighter scrim than the site-wide default (below) — the landing page isn't on screen
     mid-session, so backgroundmain.jpg can show through more here. Gold/purple glows
     layered on top for extra atmosphere. */
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, var(--tp-accent-dim), transparent 60%),
    radial-gradient(ellipse 700px 400px at 90% 10%, rgba(90, 60, 140, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(21, 23, 28, 0.72), rgba(21, 23, 28, 0.88)),
    url('../images/backgroundmain.jpg') center 20% / cover no-repeat fixed,
    var(--tp-bg);
  background-attachment: fixed;
}

.tp-hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}
.tp-hero .tp-emblem {
  font-size: 2.4rem;
  color: var(--tp-accent);
  text-shadow: 0 0 30px var(--tp-accent-dim);
  margin-bottom: 0.75rem;
}
.tp-hero h1 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, var(--tp-accent-bright), var(--tp-accent) 60%, #a9843a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tp-hero p {
  color: var(--tp-muted);
  font-size: 0.95rem;
  max-width: 32rem;
  margin: 0 auto;
}

/* ── Shared card / button vocabulary ─────────────────────────────────────────────── */

.tp-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.tp-card {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 0.85rem;
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.85rem;
  /* Now that there's always a photo behind the page, every card gets a lift shadow so
     it reads as a distinct panel rather than blending into the background. */
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease;
}
body.tp-landing .tp-card:hover {
  border-color: rgba(201, 169, 79, 0.35);
}

.tp-trigger-btn {
  width: 100%;
  text-align: left;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  color: var(--tp-text);
  border-radius: 0.6rem;
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.tp-trigger-btn i {
  color: var(--tp-accent);
  flex: 0 0 auto;
}
.tp-trigger-btn:hover {
  border-color: var(--tp-accent);
  background: var(--tp-surface-2);
}

.tp-fired {
  opacity: 0.45; /* "greys out ... used option to keep the screen clean" — brief §B */
  pointer-events: none;
}

.tp-muted {
  color: var(--tp-muted);
  font-size: 0.85rem;
}

.btn-outline-light {
  --bs-btn-border-color: var(--tp-border);
}
.btn-outline-light:hover {
  --bs-btn-hover-bg: var(--tp-accent);
  --bs-btn-hover-border-color: var(--tp-accent);
  --bs-btn-hover-color: #16181d;
}
.btn i {
  margin-right: 0.4rem;
}

/* ── Character avatars ────────────────────────────────────────────────────────────── */

.tp-avatar-row {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.tp-avatar {
  flex: 0 0 auto;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--tp-surface);
  border: 2px solid var(--tp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tp-avatar.active {
  border-color: var(--tp-accent);
  box-shadow: 0 0 0 3px var(--tp-accent-dim);
}

/* ── Narration log entries ───────────────────────────────────────────────────────── */

.tp-log-entry .tp-log-icon {
  color: var(--tp-accent);
  margin-right: 0.5rem;
}
