/* Home: header, hero, news ticker and footer. Loaded after the other home styles. */
body#home {
  --hh-blue: #0b5cff;
  --hh-blue-deep: #0a3fc4;
  --hh-ink: #0b1a3d;
  --hh-muted: #4a5b7d;
  --hh-amber: #f6a609;
  --hh-line: #e3eaf8;
}

/* ============================== header ============================== */
body#home .gx-home-header {
  min-height: 84px;
  background: rgba(255, 255, 255, 0.96);
}

body#home .gx-home-header__inner {
  min-height: 84px;
  gap: 24px;
}

body#home .gx-brand strong {
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--hh-blue-deep);
}

body#home .gx-brand small {
  margin-top: 4px;
  font-size: 10px;
  color: #33415f;
  letter-spacing: 0;
}

body#home .gx-home-nav {
  gap: 34px;
}

body#home .gx-home-nav a {
  padding: 30px 0 26px;
  color: #26334f;
  font-size: 15px;
  font-weight: 500;
}

body#home .gx-home-nav a:hover,
body#home .gx-home-nav a.is-active {
  color: var(--hh-blue);
}

body#home .gx-home-nav a.is-active {
  font-weight: 700 !important;
}

body#home .gx-home-nav .is-active::after {
  bottom: 18px;
  height: 3px;
}

body#home .gx-home-auth {
  margin-left: auto;
}

body#home .gx-home-auth :is(.sq-auth, .sq-auth-buttons) {
  gap: 12px;
}

html body#home .gx-home-auth button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 8px 22px 8px 16px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  animation: none !important;
}

html body#home .gx-home-auth .sq-login-btn {
  border: 1.5px solid var(--hh-blue) !important;
  background: #fff !important;
  color: var(--hh-blue) !important;
  box-shadow: 0 6px 14px rgba(11, 92, 255, 0.1) !important;
}

html body#home .gx-home-auth .sq-login-btn:hover {
  background: #eef4ff !important;
}

html body#home .gx-home-auth .sq-register-btn {
  border: 0 !important;
  background: linear-gradient(180deg, #ffc247, #f6a609) !important;
  color: #2b1d00 !important;
  box-shadow: 0 10px 20px rgba(246, 166, 9, 0.32) !important;
}

/* The icons take the colour of their button's words, so they show on a white button too. */
html body#home .gx-home-auth button .sq-btn-icon-wrapper {
  flex: 0 0 auto;
  width: 20px !important;
  height: 20px !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
}

html body#home .gx-home-auth button .sq-btn-icon-wrapper lucide-icon {
  width: 20px !important;
  height: 20px !important;
  font-size: 20px !important;
  color: inherit !important;
}

/* ============================== hero ============================== */
body#home .gx-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hh-line);
  background:
    radial-gradient(ellipse 70% 60% at 82% 62%, rgba(120, 170, 255, 0.34), transparent 70%),
    radial-gradient(ellipse 40% 40% at 4% 100%, rgba(120, 170, 255, 0.28), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f1f6ff 100%);
}

body#home .gx-hero .gx-shell {
  width: min(1320px, calc(100% - 48px));
}

body#home .gx-hero__layout {
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 18px;
}

body#home .gx-hero__copy {
  position: relative;
  z-index: 6;
  padding: 40px 0;
}

html body#home #app .gx-hero h1#home-title {
  margin: 0;
  color: var(--hh-ink);
  font-size: clamp(40px, 4.7vw, 68px) !important;
  font-weight: 800;
  line-height: 1.04 !important;
  letter-spacing: -0.035em !important;
}

html body#home #app .gx-hero h1#home-title .gx-hero-earn {
  color: var(--hh-blue);
}

html body#home #app .gx-hero h1#home-title .gx-hero-rewards {
  position: relative;
  display: inline-block;
  color: var(--hh-amber);
  background: linear-gradient(180deg, #ffc247 0%, #f39a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* The underline and the little spark beside "Rewards." */
html body#home #app .gx-hero h1#home-title .gx-hero-rewards::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 0;
  bottom: -0.16em;
  height: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M4 13 C 80 2, 190 2, 296 12' fill='none' stroke='%23f6a609' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

html body#home #app .gx-hero h1#home-title .gx-hero-rewards::before {
  content: "";
  position: absolute;
  right: -0.42em;
  top: -0.08em;
  width: 0.42em;
  height: 0.42em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg stroke='%23f6a609' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M6 34 L10 20'/%3E%3Cpath d='M18 30 L30 10'/%3E%3Cpath d='M24 36 L38 30'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body#home .gx-hero-lead {
  max-width: 560px;
  margin: 28px 0 24px;
  color: var(--hh-muted);
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.55;
}

body#home .gx-hero-lead b {
  color: var(--hh-blue);
  font-weight: 700;
}

body#home .gx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

body#home .gx-hero__actions .gx-button {
  min-height: 56px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700 !important;
  gap: 10px;
}

body#home .gx-hero__actions .gx-button--solid {
  background: linear-gradient(180deg, #1a6dff, #0a4be0);
  color: #fff;
  box-shadow: 0 14px 26px rgba(11, 92, 255, 0.3);
}

body#home .gx-hero__actions .gx-button--outline {
  border: 1.5px solid var(--hh-blue);
  background: #fff;
  color: var(--hh-blue);
}

/* ---- hero artwork: one large mascot, three small cards in the empty corners, one coin ---- */
body#home .gx-hero__visual {
  position: relative;
  display: block;
  align-self: end;
  width: 100%;
  max-width: 680px;
  min-height: 0;
  height: auto;
  aspect-ratio: 1 / 0.95;
  margin: 0 auto;
  padding: 0;
}

body#home .gx-hero__visual::before {
  display: none;
}

/* A soft stage under the bean bag. */
body#home .gx-hero-platform {
  position: absolute;
  z-index: 0;
  left: 5%;
  right: 5%;
  bottom: 0;
  height: 13%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, rgba(11, 92, 255, 0.3) 0%, rgba(11, 92, 255, 0.12) 45%, transparent 70%);
}

body#home .gx-mascot-wrap {
  position: absolute;
  z-index: 1;
  inset: auto 6% 2% 6%;
  width: auto;
  height: auto;
  aspect-ratio: 1;
  overflow: visible;
  border-radius: 0;
  filter: drop-shadow(0 20px 16px rgba(10, 40, 120, 0.2));
}

body#home .gx-mascot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  mix-blend-mode: normal;
  filter: none;
}

/* Cards: placed where the picture is empty, so none touches the mascot. */
body#home .gx-float-card {
  position: absolute;
  z-index: 2;
  inset: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  min-width: 0;
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 30px rgba(20, 60, 150, 0.14);
  animation: none;
}

body#home .gx-float-card--leader { top: 9%; left: 0; }
body#home .gx-float-card--coins { top: 2%; right: 0; }
body#home .gx-float-card--reward { top: 21%; right: 0; }

body#home .gx-float-card > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body#home .gx-float-card strong {
  color: var(--hh-ink);
  font-size: 14.5px;
  font-weight: 700 !important;
  white-space: nowrap;
}

body#home .gx-float-card small {
  color: #5b6a88;
  font-size: 12px;
  white-space: nowrap;
}

body#home .gx-float-card em {
  margin-left: 4px;
  color: #12a150;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
}

body#home .gx-float-card--coins strong {
  font-size: 20px;
  font-weight: 800 !important;
}

body#home .gx-float-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 22px;
}

body#home .gx-float-icon--trophy {
  background: #fff3d6;
  color: #e69500;
}

body#home .gx-float-icon--gift {
  background: #ffe9e4;
  color: #e5484d;
}

body#home .gx-float-coin {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 4px 6px rgba(20, 60, 150, 0.25));
}

/* One coin floating in the gap beside the mascot's arm. */
body#home .gx-hero-coin {
  position: absolute;
  z-index: 2;
  top: 45%;
  left: 0;
  width: 12%;
  height: auto;
  rotate: -12deg;
  filter: drop-shadow(0 10px 12px rgba(10, 40, 120, 0.28));
  animation: hh-float 6s ease-in-out infinite;
}

/* Gentle movement, switched off for people who ask for less motion. */
@keyframes hh-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

/* ============================== news ticker ============================== */
html body#home #latestUpdates.gx-updates {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  width: min(1180px, calc(100% - 48px));
  min-height: 72px;
  margin: 26px auto 4px;
  padding: 6px 12px 6px 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff 0%, #f4f8ff 70%, #e6efff 100%);
  box-shadow:
    0 0 0 1px #d6e4ff,
    0 14px 34px rgba(11, 92, 255, 0.22),
    0 0 26px rgba(11, 92, 255, 0.18);
  overflow: hidden;
}

html body#home #latestUpdates .gx-updates__label {
  position: relative;
  align-self: stretch;
  gap: 14px;
  margin: -6px 0 -6px -6px;
  padding: 0 56px 0 12px;
  border-right: 0;
  background: linear-gradient(135deg, #0a3fc4 0%, #0b5cff 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 46px) 100%, 0 100%);
  color: #fff;
  font: 800 14px/1 Inter, Arial, sans-serif !important;
  letter-spacing: 0.2em !important;
}

html body#home #latestUpdates .gx-updates__word {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  line-height: 2.2 !important;
}

html body#home #latestUpdates .gx-updates__bell {
  position: relative;
  width: 46px;
  height: 46px;
  background: #fff;
  color: var(--hh-blue);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.22);
}

/* A soft ring that pulses outwards from the bell to draw the eye. */
html body#home #latestUpdates .gx-updates__bell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  animation: hh-ring 2.2s ease-out infinite;
}

html body#home #latestUpdates .gx-updates__bell lucide-icon {
  width: 24px;
  height: 24px;
  font-size: 24px;
  transform-origin: 50% 10%;
  animation: hh-bell 4s ease-in-out infinite;
}

@keyframes hh-ring {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}

@keyframes hh-bell {
  0%, 84%, 100% { transform: rotate(0deg); }
  88% { transform: rotate(14deg); }
  92% { transform: rotate(-12deg); }
  96% { transform: rotate(7deg); }
}

html body#home #latestUpdates .gx-updates__item {
  gap: 16px;
}

html body#home #latestUpdates .gx-updates__category {
  padding: 8px 16px !important;
  border: 1px solid #cfe0ff !important;
  border-radius: 999px !important;
  background: #e7f0ff !important;
  color: var(--hh-blue) !important;
  font: 800 13px/1 Inter, Arial, sans-serif !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase;
}

html body#home #latestUpdates .gx-updates__title {
  color: var(--hh-ink) !important;
  font: 700 18px/1.3 Manrope, Inter, Arial, sans-serif !important;
  letter-spacing: -0.01em !important;
}

html body#home #latestUpdates .gx-updates__cta {
  color: var(--hh-blue) !important;
  font: 800 15px/1 Inter, Arial, sans-serif !important;
}

html body#home #latestUpdates .gx-updates__cta lucide-icon {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

html body#home #latestUpdates .gx-updates__nav {
  gap: 10px;
  padding-left: 0;
  border-left: 0;
}

html body#home #latestUpdates .gx-updates__btn {
  width: 44px !important;
  height: 44px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 1px solid #dbe6fb !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: var(--hh-blue) !important;
  box-shadow: 0 6px 14px rgba(20, 60, 150, 0.14) !important;
}

html body#home #latestUpdates .gx-updates__btn:hover {
  background: #eaf1ff !important;
  transform: translateY(-1px);
}

html body#home #latestUpdates .gx-updates__btn lucide-icon {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

/* ============================== footer ============================== */
html body#home #home-footer {
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 62 C 240 6, 420 112, 720 78 C 1010 44, 1200 10, 1440 58 L1440 120 L0 120 Z' fill='%230b5cff'/%3E%3Cpath d='M0 50 C 260 0, 430 96, 720 66 C 1000 36, 1210 0, 1440 44 L1440 70 C 1200 22, 1010 56, 720 90 C 420 124, 240 18, 0 74 Z' fill='%236aa2ff' opacity='0.5'/%3E%3C/svg%3E") bottom center / 100% 84px no-repeat,
    radial-gradient(ellipse 60% 70% at 86% 60%, rgba(150, 190, 255, 0.4), transparent 70%),
    linear-gradient(180deg, #f3f8ff 0%, #ffffff 30%, #eef5ff 100%) !important;
  border-top: 1px solid #dbe6fb;
  color: var(--hh-ink) !important;
  padding-bottom: 70px !important;
}

html body#home #home-footer .gx-home-footer__glow,
html body#home #home-footer::before,
html body#home #home-footer::after {
  display: none !important;
}

html body#home #home-footer .gx-home-footer__inner {
  position: relative;
  z-index: 2;
}

html body#home #home-footer :is(p, li, a, span, small, strong, summary, h2) {
  color: var(--hh-ink) !important;
}

html body#home #home-footer .gx-home-footer__identity strong {
  color: var(--hh-ink) !important;
}

html body#home #home-footer .gx-home-footer__identity strong span,
html body#home #home-footer .gx-home-footer__identity small b {
  color: var(--hh-blue) !important;
}

html body#home #home-footer .gx-home-footer__identity small {
  color: #33415f !important;
}

html body#home #home-footer .gx-home-footer__brand p,
html body#home #home-footer .gx-home-footer__follow-text {
  color: var(--hh-muted) !important;
}

html body#home #home-footer .gx-home-footer__follow-text {
  margin: 0 0 12px;
  font-size: 13px !important;
  line-height: 1.5;
  text-align: left !important;
}

html body#home #home-footer .gx-home-footer__links a {
  color: #3f5173 !important;
}

html body#home #home-footer .gx-home-footer__links a:hover,
html body#home #home-footer .gx-home-footer__legal a:hover {
  color: var(--hh-blue) !important;
}

html body#home #home-footer .gx-home-footer__group,
html body#home #home-footer .gx-home-footer__follow {
  border-color: #d6e2f7 !important;
}

/* Column headings: a round blue badge with the icon. */
html body#home #home-footer .gx-home-footer__group summary > span,
html body#home #home-footer .gx-home-footer__follow h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--hh-ink) !important;
  font-weight: 800 !important;
}

html body#home #home-footer .gx-home-footer__group summary > span > lucide-icon,
html body#home #home-footer .gx-home-footer__follow h2 > lucide-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 40px !important;
  height: 40px !important;
  padding: 9px;
  border-radius: 50% !important;
  background: #dbe7ff !important;
  box-shadow: inset 0 0 0 1px #c9daff;
  color: var(--hh-blue) !important;
  font-size: 20px !important;
}

html body#home #home-footer .gx-home-footer__follow {
  text-align: left;
}

html body#home #home-footer .gx-home-footer__follow h2 {
  margin-bottom: 12px !important;
}

html body#home #home-footer .gx-home-footer__follow a {
  width: 48px !important;
  height: 48px !important;
}

html body#home #home-footer .gx-home-footer__chevron {
  color: var(--hh-blue) !important;
}

/* The four tiles. */
html body#home #home-footer .gx-home-footer__highlights a {
  padding: 12px 6px;
  border: 1px solid #e0e9fb;
  border-radius: 16px;
  background: #fff !important;
  box-shadow: 0 10px 22px rgba(30, 70, 160, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html body#home #home-footer .gx-home-footer__highlights a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(30, 70, 160, 0.15);
}

html body#home #home-footer .gx-home-footer__highlights a span {
  color: var(--hh-ink) !important;
  font-weight: 700 !important;
}

html body#home #home-footer .gx-home-footer__highlights a lucide-icon,
html body#home #home-footer .gx-home-footer__highlights a:nth-child(n) lucide-icon {
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #e7efff !important;
  color: var(--hh-blue) !important;
  box-shadow: none !important;
  font-size: 24px !important;
  transform: none !important;
}

html body#home #home-footer .gx-home-footer__youtube,
html body#home #home-footer .gx-home-footer__instagram {
  border: 1px solid #e0e9fb;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 8px 18px rgba(30, 70, 160, 0.1);
}

html body#home #home-footer .gx-home-footer__youtube lucide-icon {
  color: #e11d1d !important;
}

html body#home #home-footer .gx-home-footer__instagram lucide-icon {
  color: #d62976 !important;
}

/* Mascot leaning on a ledge, with a speech bubble. */
html body#home #home-footer .gx-home-footer__mascot {
  position: absolute;
  z-index: 1;
  right: max(24px, calc((100vw - 1320px) / 2));
  bottom: 166px;
  width: 172px;
  pointer-events: none;
}

html body#home #home-footer .gx-home-footer__lean {
  position: relative;
  width: 100%;
}

html body#home #home-footer .gx-home-footer__lean img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 12px rgba(10, 40, 120, 0.16));
}

/* The ledge covers the cut edge of the arms, so the elbows rest on it. */
html body#home #home-footer .gx-home-footer__ledge {
  position: absolute;
  z-index: 2;
  left: -12%;
  right: -12%;
  bottom: -12px;
  height: 20px;
  border-radius: 10px;
  background: linear-gradient(180deg, #3d7bff 0%, #0b5cff 45%, #0a3fc4 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    0 10px 18px rgba(10, 63, 196, 0.28);
}

html body#home #home-footer .gx-home-footer__bubble {
  position: relative;
  width: max-content;
  margin: 0 auto 12px;
  padding: 10px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, #1a6dff, #0a3fc4);
  box-shadow: 0 10px 20px rgba(10, 63, 196, 0.26);
  color: #fff !important;
  font-family: "Caveat", "Segoe Script", cursive !important;
  font-size: 21px;
  font-weight: 700 !important;
  line-height: 1.05;
  text-align: center;
}

html body#home #home-footer .gx-home-footer__bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: #0a3fc4;
  transform: translateX(-50%) rotate(45deg);
}

/* Bottom line: copyright, the note, the legal links and the back-to-top button in one row. */
html body#home #home-footer .gx-home-footer__bottom {
  position: relative;
  z-index: 3;
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  border-top: 1px solid #cfdcf6 !important;
  background: transparent !important;
}

html body#home #home-footer .gx-home-footer__bottom > p:first-child {
  margin-right: auto;
}

html body#home #home-footer .gx-home-footer__legal {
  margin-left: auto;
}

html body#home #home-footer .gx-home-footer__bottom p,
html body#home #home-footer .gx-home-footer__legal a {
  color: #3f5173 !important;
}

html body#home #home-footer .gx-home-footer__made span {
  color: var(--hh-blue) !important;
}

html body#home #home-footer .gx-home-footer__top {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1a6dff, #0a3fc4);
  box-shadow: 0 10px 20px rgba(10, 63, 196, 0.3);
  color: #fff !important;
  font-size: 22px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

html body#home #home-footer .gx-home-footer__top lucide-icon {
  color: #fff !important;
}

html body#home #home-footer .gx-home-footer__top:hover {
  transform: translateY(-2px);
}

/* Room for the mascot beside the last column on wide screens. */
@media (min-width: 1200px) {
  html body#home #home-footer .gx-home-footer__inner {
    max-width: 1320px !important;
    padding-right: 220px !important;
    grid-template-columns: 1.5fr repeat(3, minmax(120px, 0.8fr)) minmax(150px, 0.8fr) !important;
  }

  html body#home #home-footer .gx-home-footer__bottom {
    max-width: 1320px !important;
  }
}

/* ============================== narrower screens ============================== */
@media (max-width: 1280px) {
  body#home .gx-home-nav { gap: 22px; }
  body#home .gx-home-nav a { font-size: 14px; }
  body#home .gx-float-card { padding: 10px 12px; gap: 9px; }
  body#home .gx-float-card strong { font-size: 13px; }
  body#home .gx-float-card small { font-size: 11px; }
  body#home .gx-float-card--coins strong { font-size: 18px; }
  body#home .gx-float-icon { width: 36px; height: 36px; font-size: 20px; }
  body#home .gx-float-coin { width: 38px; height: 38px; }
}

/* Below wide screens the footer mascot is a normal block under the columns: bubble beside the mascot. */
@media (max-width: 1199px) {
  html body#home #home-footer .gx-home-footer__mascot {
    position: relative !important;
    inset: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    width: auto;
    margin: 26px auto 34px;
  }

  html body#home #home-footer .gx-home-footer__lean {
    flex: 0 0 auto;
    width: 150px;
  }

  html body#home #home-footer .gx-home-footer__bubble {
    margin: 0;
  }

  html body#home #home-footer .gx-home-footer__bubble::after {
    left: auto;
    right: -7px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }
}

/* Tablets: the mascot goes below the text. */
@media (max-width: 1040px) {
  body#home .gx-home-nav { gap: 16px; }
  html body#home .gx-home-auth button { min-height: 40px !important; height: 40px !important; padding: 6px 16px 6px 12px !important; font-size: 13px !important; }

  body#home .gx-hero__layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 0;
  }

  body#home .gx-hero__copy { padding: 36px 0 10px; }
  body#home .gx-hero__visual { max-width: 580px; }
}

@media (max-width: 820px) {
  html body#home #latestUpdates.gx-updates {
    width: calc(100% - 28px);
    gap: 12px;
    min-height: 62px;
  }

  html body#home #latestUpdates .gx-updates__label { padding: 0 44px 0 10px; gap: 10px; font-size: 12px !important; }
  html body#home #latestUpdates .gx-updates__bell { width: 40px; height: 40px; }
  html body#home #latestUpdates .gx-updates__title { font-size: 15px !important; }
  html body#home #latestUpdates .gx-updates__btn { width: 38px !important; height: 38px !important; }
}

@media (max-width: 760px) {
  html body#home #home-footer .gx-home-footer__bottom {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    padding: 16px 0 !important;
    text-align: center;
  }

  html body#home #home-footer .gx-home-footer__bottom > p:first-child,
  html body#home #home-footer .gx-home-footer__legal {
    margin: 0;
  }

  html body#home #home-footer .gx-home-footer__bottom > p {
    flex: 1 1 100%;
  }
}

/* Phones */
@media (max-width: 680px) {
  body#home .gx-home-header,
  body#home .gx-home-header__inner { min-height: 63px; }
  body#home .gx-home-header__inner { gap: 8px; }
  body#home .gx-brand strong { font-size: 17px; }
  body#home .gx-brand small { display: none; }

  /* The sign-in buttons show their words only. */
  html body#home .gx-home-auth .sq-auth,
  html body#home .gx-home-auth .sq-auth-buttons { display: flex; gap: 6px !important; }
  html body#home .gx-home-auth button .sq-btn-icon-wrapper { display: none !important; }
  html body#home .gx-home-auth button { min-height: 32px !important; height: 32px !important; padding: 5px 12px !important; font-size: 11.5px !important; gap: 0 !important; }

  body#home .gx-hero .gx-shell { width: min(100% - 28px, 500px); }
  body#home .gx-hero__copy { padding: 24px 0 0; }
  html body#home #app .gx-hero h1#home-title { font-size: clamp(36px, 11.6vw, 50px) !important; }
  body#home .gx-hero-lead { margin: 20px 0 18px; font-size: 14.5px; }
  body#home .gx-hero__actions { gap: 10px; }
  body#home .gx-hero__actions .gx-button { flex: 1 1 0; min-height: 48px; padding: 0 12px; font-size: 14px; white-space: nowrap; }

  /* The two top cards sit in a band above the mascot's head. */
  body#home .gx-hero__visual { aspect-ratio: 1 / 1.13; margin-top: 18px; }
  body#home .gx-mascot-wrap { left: 0; right: 0; bottom: 2%; }
  body#home .gx-hero-platform { left: 0; right: 0; }
  body#home .gx-float-card { padding: 7px 10px 7px 8px; gap: 7px; border-radius: 12px; }
  body#home .gx-float-card strong { font-size: 12px; }
  body#home .gx-float-card small { display: none; }
  body#home .gx-float-card--coins small { display: block; font-size: 9.5px; }
  body#home .gx-float-card--coins strong { font-size: 13.5px; }
  body#home .gx-float-card em { font-size: 9.5px; margin-left: 2px; }
  body#home .gx-float-icon { width: 26px; height: 26px; border-radius: 8px; font-size: 15px; }
  body#home .gx-float-coin { width: 26px; height: 26px; }
  body#home .gx-float-card--leader { top: 0; left: 0; }
  body#home .gx-float-card--coins { top: 0; right: 0; }
  body#home .gx-float-card--reward { top: 27%; right: 0; }
  body#home .gx-hero-coin { top: 50%; width: 11%; }

  /* Ticker: the label shrinks to the bell, the text wraps to two lines. */
  html body#home #latestUpdates.gx-updates {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "label body nav";
    gap: 8px;
    min-height: 58px;
    margin-top: 18px;
    padding: 5px 8px 5px 5px;
    border-radius: 30px;
  }

  html body#home #latestUpdates .gx-updates__label { margin: -5px 0 -5px -5px; padding: 0 30px 0 8px; clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%); }
  html body#home #latestUpdates .gx-updates__word { display: none; }
  html body#home #latestUpdates .gx-updates__bell { width: 36px; height: 36px; }
  html body#home #latestUpdates .gx-updates__bell lucide-icon { width: 19px; height: 19px; font-size: 19px; }
  html body#home #latestUpdates .gx-updates__item { gap: 6px 8px; flex-wrap: wrap; }
  html body#home #latestUpdates .gx-updates__category { padding: 5px 10px !important; font-size: 10px !important; }
  html body#home #latestUpdates .gx-updates__title { font-size: 13.5px !important; white-space: normal !important; }
  html body#home #latestUpdates .gx-updates__cta { font-size: 12.5px !important; }
  html body#home #latestUpdates .gx-updates__nav { gap: 6px; }
  html body#home #latestUpdates .gx-updates__btn { width: 32px !important; height: 32px !important; }
  html body#home #latestUpdates .gx-updates__btn lucide-icon { width: 16px; height: 16px; font-size: 16px; }

  /* The page ends where the footer ends: the bottom bar hides itself there, so no spare strip is kept for it. */
  html body#home { padding-bottom: 0 !important; }

  /* Footer */
  html body#home #home-footer { padding-bottom: 64px !important; background-size: 100% 64px, auto, auto !important; }

  /* The four shortcuts become two rows of two, icon beside the words. */
  html body#home #home-footer .gx-home-footer__highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  html body#home #home-footer .gx-home-footer__highlights a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    text-align: left !important;
  }

  html body#home #home-footer .gx-home-footer__highlights a br { display: none; }
  html body#home #home-footer .gx-home-footer__highlights a span { white-space: normal; }
  html body#home #home-footer .gx-home-footer__highlights a span { font-size: 12.5px !important; }

  html body#home #home-footer .gx-home-footer__highlights a lucide-icon,
  html body#home #home-footer .gx-home-footer__highlights a:nth-child(n) lucide-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }

  /* Follow Us: heading, then the sentence beside the two buttons. */
  html body#home #home-footer .gx-home-footer__follow {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px 10px !important;
  }

  html body#home #home-footer .gx-home-footer__follow h2 {
    grid-column: 1 / -1;
    margin: 0 !important;
  }

  html body#home #home-footer .gx-home-footer__follow-text { margin: 0 !important; }
  html body#home #home-footer .gx-home-footer__follow a { margin: 0 !important; }

  html body#home #home-footer .gx-home-footer__mascot { gap: 18px; margin: 24px auto 30px; }
  html body#home #home-footer .gx-home-footer__lean { width: 120px; }
  html body#home #home-footer .gx-home-footer__ledge { height: 16px; bottom: -10px; }
  html body#home #home-footer .gx-home-footer__bubble { font-size: 18px; padding: 8px 13px; }
  html body#home #home-footer .gx-home-footer__top { width: 40px; height: 40px; }
}

@media (max-width: 380px) {
  body#home .gx-brand strong { font-size: 15px; }
  html body#home .gx-home-auth button { padding: 5px 9px !important; font-size: 11px !important; }
  body#home .gx-hero__actions .gx-button { font-size: 12.5px; padding: 0 8px; gap: 6px; }
  body#home .gx-float-card { padding: 6px 8px 6px 6px; gap: 6px; }
  body#home .gx-float-card strong { font-size: 11px; }
  body#home .gx-float-card--coins strong { font-size: 12.5px; }
  html body#home #home-footer .gx-home-footer__highlights a span { font-size: 11.5px !important; }
  html body#home #home-footer .gx-home-footer__lean { width: 104px; }
  html body#home #home-footer .gx-home-footer__bubble { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  body#home .gx-hero-coin,
  html body#home #latestUpdates .gx-updates__bell::after,
  html body#home #latestUpdates .gx-updates__bell lucide-icon {
    animation: none;
  }
}

/* Tablets: Follow Us drops to its own row, so it gets clear space above it. */
@media (min-width: 681px) and (max-width: 1199px) {
  html body#home #home-footer .gx-home-footer__follow {
    margin-top: 28px !important;
    padding-top: 24px !important;
    border-top: 1px solid #d6e2f7 !important;
  }
}
