/*
 * Two moods, one theme:
 *  - Default (every page but the landing one): low-key, quiet, doesn't compete with the
 *    physical game on the table.
 *  - .tp-landing (index.php only): full atmosphere, gradient glow, brand type.
 */

[x-cloak] { display: none !important; }

/* Deliberately not Bootstrap's .d-flex here: that utility is !important and would beat
   the plain inline style x-show uses to hide this, leaving it stuck visible. */
.tp-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1050;
}

: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, 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 {
  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, used by every page. */

.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;
  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;
  cursor: pointer;
}
.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-muted {
  color: var(--tp-muted);
  font-size: 0.85rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--tp-surface-2);
  border: 1px solid var(--tp-border);
  color: var(--tp-muted);
}
.pill i {
  color: var(--tp-accent);
}

.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;
}
