/* Light touch on purpose: the template's buttons, cards and icons do the work.
   This adds the type and the game in the hero. Colours are in palette.css. */
@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&display=swap");

:root {
  --gh-font: Figtree, "Avenir Next", Helvetica, sans-serif;
}

/* Type */
.framer-text {
  --framer-font-family: var(--gh-font) !important;
}

h1.framer-text, h2.framer-text, h3.framer-text, h4.framer-text {
  --framer-font-weight: 700 !important;
  --framer-letter-spacing: -0.035em !important;
}

section h1.framer-text {
  --framer-font-size: clamp(44px, 5.2vw, 72px) !important;
  --framer-line-height: 1.04 !important;
}

section h2.framer-text {
  --framer-font-size: clamp(34px, 3.6vw, 50px) !important;
  --framer-line-height: 1.1 !important;
}

/* The hero sits flat on the page, so the nav doesn't read as a separate band */
section[data-framer-name="Hero"] {
  position: relative;
  overflow: hidden;
}

/* The phone icon doesn't fit a demo button, and the label should sit centred */
a.framer-5ZpHr > [class$="-container"] {
  display: none !important;
}

/* Process cards don't need the template's empty space */
section[data-framer-name="Process"] .framer-5FEYb {
  height: auto !important;
  min-height: 0 !important;
  gap: 28px !important;
}

section[data-framer-name="Process"] .framer-5FEYb > * {
  height: auto !important;
}

/* The closing call to action sits in its own soft panel */
section[data-framer-name="CTA"] [data-framer-name="Container"] {
  box-sizing: border-box;
  width: min(1072px, calc(100% - 32px)) !important;
  height: auto !important;
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) !important;
  border-radius: 32px;
  background: radial-gradient(90% 120% at 0% 0%, var(--gh-glow) 0%, var(--gh-glow-mid) 70%) !important;
}

section[data-framer-name="CTA"] [data-framer-name="Section Divider"] {
  height: auto !important;
}

/* Home: the mission is said by the hero */
.glee-home section[data-framer-name="Mission"] {
  display: none !important;
}

/* Home: the template's hidden video row leaves empty height behind */
.glee-home section[data-framer-name="Hero"] [data-framer-name="Container"],
.glee-home section[data-framer-name="Hero"] [data-framer-name="Top"] {
  height: auto !important;
}

/* The smile sits where the template had its ratings */
.gh-try {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  font: 500 15px / 1.4 var(--gh-font);
  color: var(--gh-ink);
  text-align: left;
}

.gh-try p {
  margin: 0;
}

.gh-try strong {
  display: block;
  font-weight: 600;
}

.gh-try span {
  color: var(--gh-soft-ink);
  font-size: 14px;
}

.gh-mascot-btn {
  all: unset;
  flex: none;
  display: block;
  width: 52px;
  cursor: pointer;
  filter: drop-shadow(0 8px 14px color-mix(in srgb, var(--gh-accent) 40%, transparent));
  transform: rotate(-6deg);
  -webkit-tap-highlight-color: transparent;
}

.gh-mascot-btn:focus-visible {
  outline: 2px solid var(--gh-accent);
  outline-offset: 4px;
  border-radius: 30%;
}

.gh-mascot {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.gh-mascot.gh-jump {
  animation: gh-jump 0.5s cubic-bezier(0.2, 1.5, 0.4, 1);
}

@keyframes gh-jump {
  0% { transform: scale(1); }
  25% { transform: scale(1.12, 0.88); }
  60% { transform: scale(0.95, 1.08) translateY(-8px); }
  100% { transform: none; }
}

/* The row of live game cards */
.gh-cards {
  width: 100%;
  margin-top: 56px;
  padding-block: 8px 48px;
  overflow: hidden;
}

.gh-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: gh-slide 70s linear infinite;
}

.gh-cards:hover .gh-track,
.gh-cards:focus-within .gh-track {
  animation-play-state: paused;
}

@keyframes gh-slide {
  to { transform: translateX(calc(-50% - 12px)); }
}

.gh-card {
  position: relative;
  flex: none;
  width: clamp(220px, 22vw, 300px);
  padding: 10px;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--gh-ink) 8%, transparent), 0 18px 40px -18px color-mix(in srgb, var(--gh-ink) 22%, transparent);
  cursor: pointer;
  transition: transform 0.2s;
}

.gh-card:hover,
.gh-card:focus-visible {
  transform: translateY(-4px);
}

.gh-card:focus-visible {
  outline: 2px solid var(--gh-accent);
  outline-offset: 3px;
}

.gh-card canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.gh-card-play {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--gh-ink);
  color: #fff;
  font: 600 13px / 1 var(--gh-font);
}

/* The game opens over the page */
.gh-dialog {
  position: fixed;
  overflow: visible;
  padding: 0;
  border: 0;
  background: none;
}

.gh-dialog::backdrop {
  background: color-mix(in srgb, var(--gh-ink) 55%, transparent);
}

.gh-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--gh-ink) 30%, transparent);
  color: var(--gh-ink);
  font: 500 24px / 1 var(--gh-font);
  cursor: pointer;
}

.gh-phone {
  width: min(330px, 84vw, calc((100dvh - 64px) * 300 / 560));
  padding: 9px;
  border-radius: 42px;
  background: #fff;
}

.gh-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 300 / 560;
  border-radius: 34px;
}

.gh-screen canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: pan-y;
}

.gh-playing canvas {
  cursor: none;
  touch-action: none;
}

.gh-over {
  position: absolute;
  inset: auto 0 22%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-inline: 16px;
  text-align: center;
  pointer-events: none;
}

.gh-over > * {
  pointer-events: auto;
}

.gh-over strong {
  padding: 10px 14px;
  border-radius: 14px;
  background: #ffffffeb;
  color: var(--gh-ink);
  font: 700 19px / 1.2 var(--gh-font);
  letter-spacing: -0.02em;
}

.gh-playing .gh-over {
  display: none;
}

.gh-start {
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--gh-ink);
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--gh-ink) 50%, transparent);
  color: #fff;
  font: 600 15px / 1 var(--gh-font);
  cursor: pointer;
  touch-action: manipulation;
}

.gh-burst {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .gh-mascot.gh-jump { animation: none; }
  .gh-track { animation: none; }
  .gh-cards { overflow-x: auto; }
}
