/* Official Spendesk colors and fonts (Frontify brand guidelines, checked
   2026-10-05). Never add another color here without re-checking the
   guidelines first. */
:root {
  --color-grolive: #f3f4ef;
  --color-carbon: #191b1b;
  --color-white: #ffffff;
  --color-deep-purple: #7136ed;
  --color-mid-purple: #c5b6ff;
  --color-bright-purple: #e4ddff;
  --color-light-purple: #f3f0ff;

  --font-heading: "Plus Jakarta Sans", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: var(--font-body);
}

/* The stage is always exactly 1920x1080 and scaled to fill the screen, so
   the layout is identical on every TV regardless of its real resolution.
   Centering trick: top/left 50% + translate(-50%,-50%) moves the stage's
   own center to the viewport's center; scale() then applies around that
   same center point (the default transform-origin), so the result stays
   centered at any scale instead of drifting toward a corner. */
#stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  background: #000;
}

#stage .item {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

#stage .item.visible {
  opacity: 1;
  transform: scale(1);
}

#stage .item.no-transition {
  transition: none;
}

/* Image/video items keep their own background + object-fit, since they are
   full-bleed assets rather than styled text layouts. */
#stage .item.asset {
  object-fit: contain;
  background: #000;
}

/* --- Styled brand slides (cover / logos / events) ---
   Readable combo per the brand color guidance: Carbon text on a light
   background (Grolive/White). Deep Purple is used sparingly, for accents
   and the logo, matching "Grolive and Carbon in the greatest proportion,
   followed by purple to draw the eye". */
#stage .item.slide {
  display: flex;
  flex-direction: column;
  background: var(--color-grolive);
  color: var(--color-carbon);
  padding: 100px 140px;
  overflow: hidden;
  position: relative;
}

/* Large, very light decorative chevron mark in the background - a subtle
   brand touch, not competing with the readable text in front of it. */
.slide-decoration {
  position: absolute;
  bottom: -120px;
  right: -80px;
  width: 640px;
  height: 530px;
  opacity: 0.08;
  pointer-events: none;
  animation: decoration-drift 18s ease-in-out infinite;
}

.slide-header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

.slide-logo {
  height: 56px;
  animation: logo-bounce-in 700ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.slide-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 56px;
  color: var(--color-carbon);
  animation: text-fade-up 600ms ease-out 150ms both;
  line-height: 1.2;
}

.slide-cover .slide-title {
  font-size: 96px;
}

.slide-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 38px;
  color: var(--color-carbon);
  margin-top: 20px;
  animation: text-fade-up 600ms ease-out 300ms both;
}

/* Cover slide */
.slide-cover {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.slide-cover .slide-logo {
  height: 96px;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.slide-cover .slide-title,
.slide-cover .slide-subtitle {
  position: relative;
  z-index: 1;
}

/* General announcement slide - only shown when there's actual text */
.slide-announcement {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.slide-announcement .slide-logo {
  height: 72px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.announcement-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 64px;
  line-height: 1.3;
  color: var(--color-carbon);
  max-width: 1400px;
  position: relative;
  z-index: 1;
  white-space: pre-line;
  animation: text-fade-up 600ms ease-out 300ms both;
}

/* A thin brand-purple rule under the cover title, for a bit of punch
   without introducing any new color. */
.slide-cover .slide-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 6px;
  background: var(--color-deep-purple);
  border-radius: 3px;
  margin: 28px auto 0;
}

/* Customer and people grids use centered wrapping instead of a left-anchored
   CSS grid. This keeps the final row centered for 1, 2 or 3 cards. */
.logos-grid,
.people-grid {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-content: center;
  justify-content: center;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.logos-grid > .logo-chip,
.people-grid > .person-card {
  flex: 0 0 calc((100% - 96px) / 4);
  max-width: calc((100% - 96px) / 4);
}

.logo-chip {
  background: var(--color-white);
  border-top: 6px solid var(--color-deep-purple);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  min-height: 180px;
  box-shadow: 0 12px 24px rgba(25, 27, 27, 0.08);
  animation: card-pop-in 480ms ease-out both;
  animation-delay: calc(var(--card-index, 0) * 150ms);
}

.logo-chip img {
  max-width: 85%;
  max-height: 70px;
  object-fit: contain;
}

.logo-chip .logo-chip-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 30px;
  color: var(--color-carbon);
  text-align: center;
}

.logo-chip .logo-chip-placeholder-tag {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-deep-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* New-joiners cards keep a consistent internal structure. The shared flex
   grid above also centers an odd final row for this slide. */

.person-card {
  background: var(--color-white);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 20px;
  min-height: 220px;
  box-shadow: 0 12px 24px rgba(25, 27, 27, 0.08);
  animation: card-pop-in 480ms ease-out both;
  animation-delay: calc(var(--card-index, 0) * 150ms);
}

.person-avatar,
.person-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex-shrink: 0;
}

.person-avatar {
  object-fit: cover;
  border: 3px solid var(--color-deep-purple);
}

.person-avatar-placeholder {
  background: var(--color-light-purple);
  border: 3px solid var(--color-bright-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  color: var(--color-deep-purple);
}

.person-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  color: var(--color-carbon);
  text-align: center;
}

.person-role {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-carbon);
  opacity: 0.75;
  text-align: center;
}

/* Paris events list */
.events-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.event-row {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--color-white);
  border-left: 6px solid var(--color-deep-purple);
  border-radius: 16px;
  padding: 28px 40px;
  box-shadow: 0 12px 24px rgba(25, 27, 27, 0.08);
  animation: card-pop-in 480ms ease-out both;
  animation-delay: calc(var(--card-index, 0) * 150ms);
}

.event-date {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 34px;
  color: var(--color-deep-purple);
  min-width: 220px;
}

.event-details {
  display: flex;
  flex-direction: column;
}

.event-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 36px;
  color: var(--color-carbon);
}

.event-location {
  font-family: var(--font-body);
  font-size: 26px;
  color: var(--color-carbon);
  opacity: 0.75;
}

/* Small, clearly-labelled tag so nobody mistakes prototype placeholder
   content for real/final data. Remove the "placeholderNotice" field in
   manifest.json once real content replaces the example data (see README). */
.placeholder-banner {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  color: var(--color-deep-purple);
  background: var(--color-light-purple);
  border-radius: 8px;
  padding: 8px 16px;
  align-self: flex-start;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

/* --- Animations: a celebratory confetti burst for "wins" (new customers,
   new joiners), and a gentle staggered pop-in for every card/row, using
   only approved brand/tertiary colors (see player/app.js CONFETTI_COLORS). --- */

@keyframes card-pop-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-60px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(1150px) rotate(360deg);
    opacity: 0;
  }
}

.confetti-piece {
  position: absolute;
  top: 0;
  border-radius: 3px;
  pointer-events: none;
  animation-name: confetti-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  z-index: 2;
}

@keyframes logo-bounce-in {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes text-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Very slow, subtle drift so the background decoration doesn't feel
   static during the ~10s a slide stays on screen - not meant to be
   consciously noticed, just to keep things feeling alive. */
@keyframes decoration-drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-24px, -18px) rotate(5deg);
  }
}

/* Password gate - only shown when GATE_PASSWORD_HASH is set (see
   player/gate-config.js); invisible/inert for local or network-only use. */
#gate {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-carbon);
  align-items: center;
  justify-content: center;
  z-index: 10;
}

#gate.visible {
  display: flex;
}

#gate-form {
  background: var(--color-white);
  border-radius: 16px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
}

#gate-form input {
  padding: 12px 16px;
  border: 1px solid var(--color-bright-purple);
  border-radius: 8px;
  font-size: 18px;
  width: 280px;
}

#gate-form button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: var(--color-deep-purple);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

#gate-error {
  color: #b00020;
  font-size: 14px;
  min-height: 1em;
}

.event-badge { display:block; margin-top:12px; padding:6px 12px; border-radius:14px; font-size:22px; background:#7136ed; color:white; width:fit-content; }

/* Sales reports share the existing Spendesk palette and stage scaling. */
.slide-sales-report .slide-header{margin-bottom:24px}
.sales-report-subtitle{font-size:27px;color:var(--color-deep-purple);margin-bottom:28px;position:relative;z-index:1}
.leaderboard-list,.churn-list{display:flex;flex-direction:column;gap:16px;position:relative;z-index:1;flex:1;justify-content:center;min-height:0}
.leaderboard-row,.churn-row{display:grid;align-items:center;gap:24px;background:var(--color-white);border-radius:16px;border-left:7px solid var(--color-deep-purple);padding:20px 28px;animation:card-pop-in 480ms ease-out both;animation-delay:calc(var(--card-index,0)*120ms)}
.leaderboard-row{grid-template-columns:70px minmax(0,1fr) 260px;min-height:100px}
.sales-rank{font-size:42px;font-weight:800;color:var(--color-deep-purple)}
.sales-person{display:flex;align-items:center;gap:18px;min-width:0}
.sales-person-name{font-size:36px;font-weight:600;overflow-wrap:anywhere}
.sales-avatar{width:58px;height:58px;flex:0 0 58px;border-radius:50%;object-fit:cover;display:grid;place-items:center;font-size:21px}
.sales-person{font-size:36px;font-weight:600;overflow-wrap:anywhere}
.sales-value{font-size:38px;font-weight:700;text-align:right;font-variant-numeric:tabular-nums}
.leaderboard-row:first-child{background:var(--color-light-purple)}
.churn-row{grid-template-columns:minmax(0,1.8fr) minmax(0,1fr) 240px;min-height:100px;padding:14px 24px}
.churn-name{font-size:28px;font-weight:650;overflow-wrap:anywhere}
.churn-context{font-size:18px;margin-top:6px;overflow-wrap:anywhere}
.churn-account{display:flex;align-items:center;gap:18px;min-width:0}
.churn-account-copy{min-width:0}
.churn-logo{width:68px;height:68px;flex:0 0 68px;object-fit:contain;border-radius:12px;background:var(--color-white);padding:7px}
.churn-owner{font-size:24px;overflow-wrap:anywhere}
.churn-value{font-size:30px;font-weight:650;text-align:right;font-variant-numeric:tabular-nums}
.sales-label{font-size:17px;font-weight:400;margin-bottom:5px;color:var(--color-deep-purple)}
.sales-report-note{font-size:18px;margin-top:20px;position:relative;z-index:1}
.logo-chip-placeholder-tag{overflow-wrap:anywhere;text-align:center}

.slide-anniversaries .slide-header{margin-bottom:18px}
.anniversary-list{display:flex;flex-direction:column;gap:18px;position:relative;z-index:1;flex:1;justify-content:center}
.anniversary-row{display:grid;grid-template-columns:84px 260px minmax(0,1fr);align-items:center;gap:24px;background:var(--color-white);border-left:7px solid var(--color-bright-purple);border-radius:16px;padding:24px 32px;animation:card-pop-in 480ms ease-out both;animation-delay:calc(var(--card-index,0)*120ms)}
.anniversary-avatar{width:78px;height:78px;border-radius:50%;object-fit:cover;display:grid;place-items:center;font-size:27px}
.anniversary-date{font-size:31px;font-weight:700;color:var(--color-deep-purple)}
.anniversary-name{font-size:36px;font-weight:650;overflow-wrap:anywhere}
.anniversary-years{font-size:23px;margin-top:4px;color:var(--color-deep-purple)}

/* A compact, branded celebration treatment for work anniversaries. */
.slide-anniversaries{background:linear-gradient(135deg,#f7f0ff 0%,#fff 52%,#f3f8ff 100%)}
.celebration-banner{height:78px;display:flex;align-items:center;justify-content:center;gap:24px;position:relative;z-index:1}
.cake-illustration{font-size:64px;line-height:1;filter:drop-shadow(0 8px 8px rgba(25,27,27,.12));animation:cake-bounce 2.8s ease-in-out infinite}
.celebration-confetti{font-size:28px;letter-spacing:10px;color:var(--color-bright-purple);white-space:nowrap}
@keyframes cake-bounce{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-6px) rotate(2deg)}}
.slide-anniversaries .slide-header{margin-top:0}
.churn-row-no-mrr{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}

html.kiosk-mode,html.kiosk-mode body{cursor:none;overflow:hidden}


