/* CitCom palette, type and the gameshow motifs from design/tokens.css. Shared by both pages.
   Theme accent overrides, if any, come from theme/theme.css loaded after this file. */
:root {
  --aubergine: #1C0221;
  --aubergine-ray: #2B0A33;
  --starfruit: #9AD14D;
  --slate: #2A4747;
  --persian: #17A398;
  --carrot: #F9A03F;
  --grey: #D8DBE2;
  --grey-light: #EFF1F3;
  --grey-dark: #A2A4AA;
  --white: #FFFFFF;
  --radius-card: 10px;
  --radius-pill: 50rem;
  /* Forma DJR Micro via CitCom's Typekit kit when its URL is set in the theme; Montserrat otherwise. */
  --font: "forma-djr-micro", Montserrat, system-ui, Arial, sans-serif;
  --ease: .2s ease-in-out;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--aubergine);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; /* no double-tap zoom delay on taps */
}
h1, h2, h3, p { margin: 0; }
button, input { font-family: inherit; }
button { cursor: pointer; }
img { display: block; }
[hidden] { display: none !important; }

/* Marquee bulbs: host strip 28px, phone strip 20px. The two colours sit on their own
   layers so they can twinkle in turn, like a real marquee. */
.bulbs { position: relative; height: 28px; flex: none; }
.bulbs::before, .bulbs::after { content: ""; position: absolute; inset: 0; }
.bulbs::before { background: radial-gradient(circle, var(--carrot) 6px, transparent 7px) 0 0 / 80px 28px repeat-x; }
.bulbs::after { background: radial-gradient(circle, var(--starfruit) 6px, transparent 7px) 40px 0 / 80px 28px repeat-x; }
.bulbs--phone { height: 20px; }
.bulbs--phone::before { background: radial-gradient(circle, var(--carrot) 5px, transparent 6px) 0 0 / 52px 20px repeat-x; }
.bulbs--phone::after { background: radial-gradient(circle, var(--starfruit) 5px, transparent 6px) 26px 0 / 52px 20px repeat-x; }
.bulbs--dim { opacity: .3; }
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.bulbs--live::before { animation: twinkle 1.8s ease-in-out infinite; }
.bulbs--live::after { animation: twinkle 1.8s ease-in-out infinite; animation-delay: .9s; }

/* Price tag flip for the reveal. Keeps the tag's own tilt. */
@keyframes tag-flip {
  0% { transform: rotate(-4deg) perspective(900px) rotateY(95deg); opacity: 0; }
  60% { transform: rotate(-4deg) perspective(900px) rotateY(-14deg); opacity: 1; }
  100% { transform: rotate(-4deg) perspective(900px) rotateY(0); opacity: 1; }
}
.price-tag--flip { animation: tag-flip .7s cubic-bezier(.2, .8, .3, 1) both; }

/* Light snow. Added by script only when the theme asks for it. */
.snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.snow i { position: absolute; top: -12px; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--white); opacity: .45; animation: snowfall linear infinite; will-change: transform; }
@keyframes snowfall {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(var(--sway, 20px), 50vh, 0); }
  100% { transform: translate3d(0, 100vh, 0); }
}
.stage .snow i { animation-name: snowfall-stage; }
@keyframes snowfall-stage {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(var(--sway, 20px), 380px, 0); }
  100% { transform: translate3d(0, 760px, 0); }
}

/* Sunburst backdrop. --burst-x and --burst-y move the centre per screen. */
.burst {
  background: repeating-conic-gradient(from 0deg at var(--burst-x, 50%) var(--burst-y, 55%), var(--aubergine) 0deg 9deg, var(--aubergine-ray) 9deg 18deg);
}

/* Display title with hard offset shadow. */
.display { font-weight: 800; line-height: 1; text-shadow: 6px 6px 0 var(--carrot); }
.display--small { text-shadow: 3px 3px 0 var(--carrot); }

/* Buttons are always pills. On dark: starfruit fill, aubergine text. Hover swaps colours, 200ms. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--starfruit);
  color: var(--aubergine);
  font-size: 20px;
  font-weight: 700;
  padding: 14px 30px;
  min-height: 44px;
  white-space: nowrap;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  transition: background var(--ease), color var(--ease), opacity var(--ease), transform .08s ease-out;
}
.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.btn--white { background: var(--white); }
.btn--persian { background: var(--persian); }
.btn--slate { background: var(--slate); color: var(--white); }
.btn--block { display: flex; width: 100%; }
/* Colour-swap hover only where there is a real pointer; on touch it would stick after a tap. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--white); }
  .btn:disabled:hover { background: var(--starfruit); }
  .btn--white:hover { background: var(--starfruit); }
  .btn--persian:hover { background: var(--persian); }
  .btn--slate:hover { background: var(--persian); color: var(--aubergine); }
}

.panel { background: var(--aubergine); border: 3px solid var(--persian); border-radius: var(--radius-card); }
.chip { background: var(--slate); border-radius: var(--radius-pill); font-weight: 700; }
.badge {
  display: inline-block;
  background: var(--carrot);
  color: var(--aubergine);
  font-weight: 800;
  border-radius: var(--radius-pill);
  padding: 8px 22px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.badge--starfruit { background: var(--starfruit); }
.badge--persian { background: var(--persian); }
.pill-label { display: inline-block; background: var(--starfruit); color: var(--aubergine); font-weight: 700; border-radius: var(--radius-pill); }
.pill-label--logo { display: inline-flex; align-items: center; gap: .45em; }
.presenter-logo { height: 1.1em; width: auto; display: inline-block; }

/* Price tag: starfruit card, rotated, hard persian shadow, punched hole top-left. */
.price-tag {
  position: relative;
  background: var(--starfruit);
  color: var(--aubergine);
  border-radius: var(--radius-card);
  transform: rotate(-4deg);
  box-shadow: 8px 8px 0 var(--persian);
  font-weight: 800;
  text-align: center;
}
.price-tag::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--aubergine);
}

.avatar { border-radius: 50%; object-fit: cover; background: var(--slate); }
.avatar--ring { outline: 4px solid var(--white); outline-offset: 3px; }
.avatar--ring-starfruit { outline: 4px solid var(--starfruit); outline-offset: 4px; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--starfruit); flex: none; }
.dot--off { background: var(--carrot); }
.muted { color: var(--grey); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.progress { height: 12px; border-radius: var(--radius-pill); background: var(--slate); overflow: hidden; }
.progress > div { height: 100%; border-radius: var(--radius-pill); background: var(--starfruit); transition: width .25s linear; }
.progress--carrot > div { background: var(--carrot); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
