/* ============================================================================
   FEED GOOD TIMES — SHARED PIZZA HUT BRAND SKIN
   ----------------------------------------------------------------------------
   PURELY PRESENTATIONAL. Linked LAST in every page's <head> so it re-skins the
   look without touching any game behavior, scoring, or logic. It only:
     • unifies the color palette (brand red + a clean warm supporting palette),
     • standardizes buttons, headings, cards, and spacing,
     • adds the consistent Pizza Hut header bar (.fgt-brandbar) and footer,
     • styles the pizza-slice slice-counter motif.
   Every page already consumes CSS variables (--ph-red, --accent, etc.); we just
   redefine those variables here, so existing markup re-colors automatically.
   ========================================================================== */

:root {
  /* The red sampled from the Pizza Hut + Feed Good Times logos. */
  --brand-red:       #ED1C24;
  --brand-red-dark:  #B5121B;
  --brand-ink:       #241412;   /* warm near-black for strong contrast on cream */
  --brand-muted:     #7c6a62;
  --brand-paper:     #FBF4EE;   /* clean warm paper background */
  --brand-card:      #ffffff;
  --brand-line:      #ecd9cf;

  /* --- Re-point every variable the pages already use to the brand palette --- */
  /* trivia / timeline / simulation files */
  --ph-red:      var(--brand-red);
  --ph-red-dark: var(--brand-red-dark);
  --ink:         var(--brand-ink);
  --paper:       var(--brand-paper);
  --card-back:   var(--brand-red);
  /* shell (FeedGoodTimes.html) */
  --accent:      var(--brand-red);
  --accent-dark: var(--brand-red-dark);
  --bg:          var(--brand-paper);
  --card:        var(--brand-card);
  --line:        var(--brand-line);
  --muted:       var(--brand-muted);
}

/* Consistent typography + page canvas everywhere. */
body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--brand-ink);
  /* Clear the fixed brand bar. Other paddings remain from each page. */
  padding-top: 64px;
}

/* Brand headings — bold, tight, red. */
h1, h2 { letter-spacing: 0.3px; }
h1 { font-weight: 800; }
h2 { font-weight: 800; }

/* ---- Consistent PRIMARY button across every screen ----
   Class-based variants (.choice, .answer, .focus-choice, .game-tile, .secondary)
   keep their own look because class selectors outrank this element selector. */
button {
  font-family: inherit;
  border: none;
  border-radius: 12px;
  padding: 13px 26px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(146, 14, 20, 0.18);
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}
button:hover { background: var(--brand-red-dark); }
button:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(146,14,20,0.18); }

/* ---- The consistent Pizza Hut header bar (fixed, full width) ---- */
.fgt-brandbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 18px;
  background: #ffffff;
  border-bottom: 3px solid var(--brand-red);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.fgt-brandbar img.fgt-mark { height: 34px; width: auto; display: block; }
.fgt-brandbar .fgt-wordmark {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--brand-red);
}
.fgt-brandbar .fgt-spacer { flex: 1; }
.fgt-brandbar .fgt-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--brand-muted);
  text-transform: uppercase;
}
@media (max-width: 520px) {
  .fgt-brandbar .fgt-tag { display: none; }
  .fgt-brandbar .fgt-wordmark { font-size: 0.8rem; }
}

/* ---- The consistent brand footer mark ---- */
.fgt-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 36px auto 8px;
  padding: 14px;
  color: var(--brand-muted);
  font-size: 0.8rem;
}
.fgt-footer img { height: 22px; width: auto; opacity: 0.9; }

/* ---- Opening-screen brand lockup (shell welcome) ---- */
.fgt-title-logo {
  display: block;
  width: 100%;
  max-width: 440px;
  margin: 4px auto 18px;
}
.fgt-hero {
  display: block;
  width: 100%;
  max-width: 560px;
  max-height: 300px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 auto 22px;
  box-shadow: 0 10px 28px rgba(36, 20, 18, 0.18);
}

/* Accessible heading hidden behind the logo lockup. */
.fgt-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- Pizza-slice slice-counter motif ---- */
.fgt-slice-stat .num { display: inline-flex; align-items: center; gap: 8px; }
.fgt-slice-stat .num::before {
  content: "🍕";
  font-size: 1.25rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}
