/* Shared theme: card-table felt + gold accents.
   Used by landing, login, and any future game shell. */

:root {
  --felt: #0c5e3a;
  --felt-dark: #0a4a2d;
  --felt-edge: #062a19;
  --gold: #e6b745;
  --gold-soft: #f7e9b8;
  --card-bg: #fdfdfd;
  --red: #c62828;
  --black: #161616;
  --text: #f3eedb;
  --muted: #b8b59f;
  --danger: #d44a4a;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 50% 20%, #1a3a26 0%, #08200f 100%);
  background-attachment: fixed;
}

/* Photographic backdrop layered behind the page.
   Sits below content (z-index: -1) and out of the document flow.
   The image is dimmed and tinted toward the felt palette so headings stay legible. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 30, 16, 0.72) 0%, rgba(3, 18, 10, 0.92) 100%),
    url('/assets/ines-ferreira-DYM_vBsosVA-unsplash.jpg') center/cover no-repeat;
  background-attachment: fixed;
  filter: saturate(0.8);
}
body::after {
  /* Soft vignette + warm gold glow at the top, matching the brand. */
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(230, 183, 69, 0.10), transparent 55%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
}

a { color: var(--gold-soft); }

/* ---------- Logo (fan of playing cards + wordmark) ---------- */
/* Reusable via .fg-logo plus a size modifier (--sm or --lg).
   The fan widens on hover for a touch of personality. */

.fg-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  text-decoration: none;
  color: inherit;
}
.fg-logo__cards {
  display: block;
  width: 56px;
  height: 36px;
  overflow: visible;
  flex-shrink: 0;
}
.fg-logo__cards .card {
  transform-origin: 60px 70px; /* common pivot below the cards */
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.5, 1);
}
.fg-logo__cards .card rect {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.fg-logo__cards .c1 { transform: rotate(-28deg); }
.fg-logo__cards .c2 { transform: rotate(-9deg); }
.fg-logo__cards .c3 { transform: rotate(9deg); }
.fg-logo__cards .c4 { transform: rotate(28deg); }
.fg-logo:hover .fg-logo__cards .c1 { transform: rotate(-40deg) translateY(-1.5px); }
.fg-logo:hover .fg-logo__cards .c2 { transform: rotate(-14deg) translateY(-1.5px); }
.fg-logo:hover .fg-logo__cards .c3 { transform: rotate(14deg) translateY(-1.5px); }
.fg-logo:hover .fg-logo__cards .c4 { transform: rotate(40deg) translateY(-1.5px); }
.fg-logo__cards .dice { opacity: 0.45; transition: opacity 0.45s ease; }
.fg-logo:hover .fg-logo__cards .dice { opacity: 0.7; }
.fg-logo__words {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.fg-logo__script {
  font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
  color: var(--gold-soft);
  font-size: 22px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.fg-logo__mark {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 4px;
  font-size: 14px;
  margin-top: 2px;
}

/* Small variant — used in the lobby topbar */
.fg-logo--sm .fg-logo__cards { width: 56px; height: 36px; }

/* Large variant — used on the login page hero */
.fg-logo--lg {
  flex-direction: column;
  gap: 18px;
}
.fg-logo--lg .fg-logo__cards { width: 120px; height: 76px; }
.fg-logo--lg .fg-logo__words { align-items: center; }
.fg-logo--lg .fg-logo__script { font-size: clamp(28px, 4.4vw, 38px); }
.fg-logo--lg .fg-logo__mark   { font-size: clamp(20px, 3vw, 26px); letter-spacing: 6px; margin-top: 6px; }
.fg-logo--lg .fg-logo__tagline {
  color: var(--muted);
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.panel {
  background: linear-gradient(180deg, #1f4a30, #0e2e1c);
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.center-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

label {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
}
label input[type="text"],
label input[type="password"],
label input[type="number"],
label select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-size: 16px;
  background: #06210f;
  color: var(--text);
  border: 1px solid #2a5a3a;
  border-radius: 8px;
  outline: none;
}
label input:focus, label select:focus {
  border-color: var(--gold);
}

button, .btn {
  font: inherit;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: transform 0.05s ease, filter 0.15s ease;
}
button:active, .btn:active { transform: translateY(1px); }

.primary-btn {
  background: var(--gold);
  color: #2a1d00;
  font-weight: 700;
}
.primary-btn:hover { filter: brightness(1.07); }

.ghost-btn {
  background: transparent;
  color: var(--gold-soft);
  border: 1px solid var(--gold);
}
.ghost-btn:hover { background: rgba(230, 183, 69, 0.08); }

.danger-btn {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}
.danger-btn:hover { background: rgba(212, 74, 74, 0.08); }

.muted { color: var(--muted); }
.error {
  color: var(--danger);
  font-size: 14px;
  margin: 8px 0 0;
  min-height: 1em;
}

.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* Top bar (used on landing) */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: linear-gradient(180deg, #062a19, #03150c);
  border-bottom: 1px solid var(--gold);
}
.topbar .who {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: #2a1d00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.avatar.lg { width: 56px; height: 56px; font-size: 22px; }

/* Safety badge */
.safety-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gold-soft);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(230, 183, 69, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
}
.safety-badge .ico { width: 13px; height: 13px; }

/* Inline FA icons — sized to current font, fills inherit theme color */
.ico {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

/* Personal Boomstick logo — quiet attribution at the bottom */
.personal-mark {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  opacity: 0.32;
  transition: opacity 0.25s ease;
}
.personal-mark:hover { opacity: 0.7; }
.personal-mark img {
  width: 28px;
  height: auto;
  display: block;
}
