/* The "Explore Club YAP" footer, shared by every page (home, legal pages and
 * the generated ones). Self-contained: the legal pages use styles.css, not
 * home.css, so this sets its own colours and spacing. */

.explore {
  --x-ink: #13171A; --x-muted: #6B7078; --x-blue: #0F37FE;
  background: #F4F2FA; border-top: 1.5px solid rgba(19, 23, 26, .1);
  padding: 56px 0 40px; color: var(--x-ink);
  font-family: 'Nunito', ui-rounded, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.explore-wrap { max-width: 1088px; margin: 0 auto; padding: 0 24px; }
.explore-head { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; }
.explore-head img { height: 44px; width: auto; display: block; }
.explore-head p { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.explore-social { margin-left: auto; display: flex; gap: 10px; }
.explore-social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--x-ink); border: 2.5px solid var(--x-ink); box-shadow: 2px 2px 0 var(--x-ink);
  transition: transform .12s, color .12s;
}
.explore-social a:hover { color: var(--x-blue); transform: translate(-1px, -1px); }
.explore-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 24px; }
.explore h2 {
  margin: 0 0 14px; font-size: 12px; font-weight: 900; letter-spacing: .12em;
  text-transform: uppercase; color: var(--x-muted); line-height: 1.3;
}
.explore ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.explore li a { color: var(--x-ink); font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.3; }
.explore li a:hover { color: var(--x-blue); }
.explore-stores { gap: 12px; }
.explore-stores a {
  display: flex; flex-direction: column; gap: 1px; padding: 10px 14px;
  background: #fff; border: 2.5px solid var(--x-ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--x-ink);
  transition: transform .12s, box-shadow .12s;
}
.explore-stores a:hover { color: var(--x-ink); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--x-ink); }
.explore-stores b { font-size: 15px; font-weight: 900; }
.explore-stores span { font-size: 12px; font-weight: 800; color: #08B02A; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.explore-legal { margin: 44px 0 0; padding-top: 20px; border-top: 1.5px solid rgba(19, 23, 26, .1); color: var(--x-muted); font-size: 13px; font-weight: 600; line-height: 1.5; }

/* The finale (assets/explore.js): the logo, big, with culture stickers all
   round it. They fly out of the logo, drift with the pointer and bob; a tap
   pops one and shows its flag, name, meaning and how to say it. */
.explore { overflow: hidden; padding-bottom: 0; }
.ef { position: relative; margin: 44px calc(50% - 50vw) 0; isolation: isolate; --mx: 0; --my: 0; }
.ef-hint { position: relative; z-index: 3; margin: 0 auto; padding: 0 20px; max-width: 640px; text-align: center; font-size: 16px; font-weight: 700; color: var(--x-muted); }
.ef-hint b { color: var(--x-ink); font-weight: 900; }
.ef-hint a { color: var(--x-blue); font-weight: 900; text-decoration: none; white-space: nowrap; }
.ef-stage { position: relative; height: clamp(460px, 44vw, 600px); max-width: 1280px; margin: 0 auto; }
.ef-glow { position: absolute; left: 50%; top: 50%; width: min(900px, 110vw); aspect-ratio: 1.6; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(254,200,0,.5), rgba(254,200,0,.16) 55%, rgba(254,200,0,0)); animation: ef-glow 6s ease-in-out infinite; }
@keyframes ef-glow { 50% { scale: 1.08; opacity: .8; } }
.ef-logo { position: absolute; z-index: 1; left: 50%; top: 50%; width: clamp(180px, 26vw, 360px); height: auto; aspect-ratio: 400 / 275; translate: -50% -50%;
  filter: drop-shadow(6px 7px 0 var(--x-ink)); cursor: pointer; transform-origin: 50% 80%; scale: .5; opacity: 0;
  transition: scale .8s cubic-bezier(.3,1.6,.5,1), opacity .4s; }
.ef-in .ef-logo { scale: 1; opacity: 1; animation: finale-sway 7s ease-in-out 1s infinite; }
.ef-logo.boing { animation: ef-boing .7s cubic-bezier(.3,1.6,.5,1) !important; }
@keyframes ef-boing { 30% { scale: 1.15 .85; } 60% { scale: .92 1.1; } }
@keyframes finale-sway { 0%, 100% { rotate: -3deg; } 50% { rotate: 2deg; } }
.ef-s { position: absolute; z-index: 2; width: clamp(56px, 6.4vw, 88px); aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer;
  translate: -50% -50%; transform: translate(var(--fx), var(--fy)) scale(.1) rotate(-90deg); opacity: 0;
  transition: transform .9s cubic-bezier(.25,1.45,.45,1), opacity .3s; transition-delay: calc(var(--i) * 32ms + .15s); -webkit-tap-highlight-color: transparent; }
.ef-in .ef-s { transform: rotate(var(--r)); opacity: 1; }
.ef-s:focus-visible { outline: 3px solid var(--x-blue); outline-offset: 4px; border-radius: 50%; }
.ef-p { display: block; width: 100%; height: 100%;
  transform: translate(calc(var(--mx) * var(--d) * -46px), calc(var(--my) * var(--d) * -34px)); transition: transform .5s cubic-bezier(.2,.8,.3,1); }
.ef-s img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(3px 4px 0 rgba(19,23,26,.18));
  animation: ef-bob calc(3s + var(--d) * 2s) ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); transition: scale .25s cubic-bezier(.3,1.6,.5,1), filter .25s; }
@keyframes ef-bob { 50% { translate: 0 -9px; rotate: 4deg; } }
.ef-s:hover img { scale: 1.18; filter: drop-shadow(5px 7px 0 rgba(19,23,26,.25)); }
.ef-s.pop img { animation: ef-pop .7s cubic-bezier(.3,1.5,.5,1), ef-bob calc(3s + var(--d) * 2s) ease-in-out .7s infinite; }
@keyframes ef-pop { 0% { scale: 1; } 30% { scale: 1.45; rotate: -14deg; } 60% { scale: .9; rotate: 8deg; } 100% { scale: 1; } }
.ef-s.on img { scale: 1.22; filter: drop-shadow(0 0 0 #fff) drop-shadow(4px 5px 0 var(--x-ink)); }
.ef-s.seen::after { content: '✓'; position: absolute; right: 2%; bottom: 4%; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: #08B02A; border: 2px solid var(--x-ink); color: #fff; font-size: 12px; font-weight: 900; animation: ef-tick .4s cubic-bezier(.3,1.8,.5,1); }
@keyframes ef-tick { from { scale: 0; } }
.ef-off .ef-s img, .ef-off .ef-logo, .ef-off .ef-glow { animation-play-state: paused; }
.ef-bit { position: absolute; z-index: 4; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--x-ink); pointer-events: none; }
.ef-bit.sq { border-radius: 2px; width: 9px; height: 13px; }
.ef-card { position: absolute; z-index: 5; width: min(300px, calc(100% - 16px)); padding: 14px 16px 14px; background: #fff; border: 2.5px solid var(--x-ink); border-radius: 18px;
  box-shadow: 5px 5px 0 var(--x-ink); text-align: left; }
.ef-card[hidden] { display: none; }
.ef-c-in { animation: ef-card .4s cubic-bezier(.3,1.5,.5,1); }
@keyframes ef-card { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.ef-c-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--x-muted); }
.ef-c-head img { width: 30px; height: 22px; object-fit: contain; }
.ef-c-name { display: block; margin-top: 6px; font-size: 22px; font-weight: 900; line-height: 1.15; letter-spacing: -.01em; }
.ef-c-blurb { margin: 6px 0 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: #3B3F44; }
.ef-c-say { margin: 10px 0 0; padding-top: 8px; border-top: 1.5px dashed rgba(19,23,26,.18); font-size: 14px; }
.ef-c-say small { display: block; font-size: 10.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--x-muted); }
.ef-c-say b { font-weight: 900; }
.ef-c-x { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; font-size: 22px; line-height: 1; color: var(--x-muted); cursor: pointer; }
.ef-c-x:hover { color: var(--x-ink); background: #F4F2FA; }
.ef-cta { position: relative; z-index: 3; display: flex; justify-content: center; margin: -8px 0 34px; }
.ef-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; border-radius: 999px; background: var(--x-ink); color: #fff; border: 2.5px solid var(--x-ink);
  box-shadow: 5px 5px 0 #08B02A; font-size: 18px; font-weight: 900; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.ef-btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #08B02A; }
.ef-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #08B02A; }
.ef-btn:focus-visible { outline: 3px solid var(--x-blue); outline-offset: 3px; }
.ef-ground { position: relative; height: 22px; background: #08B02A; border-top: 3px solid var(--x-ink); }
@media (prefers-reduced-motion: reduce) {
  .ef-s, .ef-logo { transition: none; }
  .ef-s img, .ef-logo, .ef-glow { animation: none !important; }
}
@media (max-width: 640px) {
  .ef-stage { height: 600px; }
  .ef-s { width: 66px; }
  .ef-x { display: none; }
  .ef-logo { width: 46vw; }
  .ef-hint { font-size: 14.5px; }
}

@media (max-width: 900px) {
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .explore-head { flex-wrap: wrap; }
  .explore-social { margin-left: 0; width: 100%; }
}
@media (max-width: 420px) {
  .explore-wrap { padding: 0 16px; }
  .explore-grid { gap: 28px 16px; }
}
@media (prefers-reduced-motion: reduce) { .explore-stores a, .explore-social a { transition: none; } }
