.preloader [ref="content"],
.cookies,
img[alt="Galeries Lafayette"],
img[alt="Galeries Lafayettes"],
img[alt="Funorama"],
img[alt="Play for good"] {
  visibility: hidden !important;
}

.cfe-overlay {
  position: fixed;
  z-index: 12;
  font-family: "Angus", Arial, Helvetica, sans-serif;
  pointer-events: none;
}

.cfe-home-brand {
  top: 6.5vh;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(430px, 37vw);
  height: min(365px, 51vh);
  padding-top: 18px;
  background: #fff;
  color: #000;
  text-align: center;
  transform: translateX(-50%) rotate(-1deg);
}

.cfe-home-brand .cfe-ribbon {
  position: relative;
  z-index: 2;
  margin-bottom: -8px;
  border: 2px solid #000;
  border-radius: 5px;
  padding: 10px 30px 8px;
  background: linear-gradient(90deg, #ef4e77, #ff9349 27%, #ffea59 53%, #71d6b2 76%, #54cce8);
  box-shadow: 5px 6px 0 #000;
  color: #fff;
  font-size: clamp(19px, 2.4vw, 34px);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  text-shadow: 2px 2px 0 #000;
  text-transform: uppercase;
}

.cfe-home-brand strong {
  color: #fff;
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-size: clamp(64px, 8.2vw, 118px);
  font-weight: 950;
  letter-spacing: -.09em;
  line-height: .88;
  text-shadow: 3px 0 #000, -3px 0 #000, 0 3px #000, 0 -3px #000, 8px 9px 0 #000;
  text-transform: uppercase;
}

.cfe-home-brand b {
  margin-top: 7px;
  color: #fff;
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 950;
  letter-spacing: -.06em;
  line-height: .82;
  text-shadow: 3px 0 #000, -3px 0 #000, 0 3px #000, 0 -3px #000, 6px 7px 0 #000;
  text-transform: uppercase;
}

.cfe-home-brand em {
  margin-top: 17px;
  border: 2px solid #000;
  padding: 8px 25px 7px;
  background: #ffea59;
  color: #000;
  font-size: clamp(14px, 1.35vw, 20px);
  font-style: normal;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(2deg);
}

.cfe-game-brand {
  right: 28px;
  bottom: 25px;
  display: none;
  flex-direction: column;
  min-width: 192px;
  border: 2px solid #000;
  border-radius: 17px;
  padding: 13px 18px 11px;
  background: #fff;
  box-shadow: 4px 4px 0 #000;
  color: #000;
  line-height: 1.08;
  text-align: left;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.cfe-game-brand span { font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.cfe-game-brand strong { color: #ef623f; font-size: 11px; letter-spacing: .1em; }

.cfe-home-link {
  left: 30px;
  bottom: 29px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 2px solid #000;
  border-radius: 50%;
  background: #fff;
  box-shadow: 4px 4px 0 #000;
  color: #000;
  font: 900 27px/1 Arial, Helvetica, sans-serif;
  pointer-events: auto;
  text-decoration: none;
}

body.cfe-game .cfe-home-brand { display: none; }
body.cfe-game .cfe-game-brand,
body.cfe-game .cfe-home-link { display: flex; }

/* The result carousel sits underneath the fixed home artwork in the licensed
   layout. Keep the festival wordmark, but compact it so every bonus picture is
   visible while the user switches between the seven slides. */
body.cfe-result .cfe-home-brand {
  top: 18px;
  z-index: 3;
  height: 270px;
  padding-top: 0;
  background: transparent;
  transform: translateX(-50%) rotate(-1deg) scale(.68);
  transform-origin: top center;
}

body.cfe-result .cfe-home-link { display: flex; }

body.cfe-result .result__bonuses {
  position: relative;
  z-index: 4;
}

body.cfe-result .result__bonus-picture {
  z-index: 5;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .16);
}

body.cfe-result .result__bonus-image {
  overflow: hidden;
  border-radius: 50% !important;
  background-color: inherit !important;
}

body.cfe-result .result__bonus-image img,
body.cfe-result .result__bonuses-item:first-child img,
body.cfe-result .result__bonuses-item:last-child img {
  top: 50% !important;
  left: 50% !important;
  width: 88% !important;
  height: 88% !important;
  object-fit: contain !important;
  transform: translate(-50%, -50%) scale(1) !important;
  transform-origin: center !important;
}

@media (max-width: 760px) {
  .cfe-home-brand { top: 8vh; width: min(390px, 68vw); height: min(330px, 46vh); }
  .cfe-game-brand { right: 15px; bottom: 14px; min-width: 145px; padding: 9px 12px; }
  .cfe-game-brand span { font-size: 10px; }
  .cfe-game-brand strong { font-size: 8px; }
  .cfe-home-link { left: 16px; bottom: 16px; width: 45px; height: 45px; font-size: 23px; }

  body.cfe-result .cfe-home-brand {
    top: 12px;
    height: 230px;
    transform: translateX(-50%) rotate(-1deg) scale(.58);
  }
}

/* Compact Coffee Festival bonus notification. The licensed layout scales its
   type from the viewport, which made this panel dominate wide or short screens. */
body.cfe-game .game__bonus {
  top: 12px !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  width: min(720px, calc(100vw - 180px));
  max-width: 720px !important;
  border: 2px solid #000 !important;
  border-radius: 30px !important;
  box-shadow: 0 7px 0 rgba(0, 0, 0, .2);
  transform: translate3d(-50%, -145%, 0) !important;
}

body.cfe-game .game__bonus.is-visible {
  transform: translate3d(-50%, 0, 0) !important;
}

body.cfe-game .game__bonus-container {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 6px !important;
}

body.cfe-game .game__bonus-item {
  min-height: 80px;
  overflow: hidden;
  border-radius: 23px !important;
}

body.cfe-game .game__bonus-item > .row {
  min-height: 80px;
  flex-wrap: nowrap;
}

body.cfe-game .game__bonus-item .col { min-width: 0; }

body.cfe-game .game__bonus-image {
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 68px !important;
  height: 68px !important;
  margin-left: 6px !important;
  overflow: hidden;
  border: 3px solid #000;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
}

body.cfe-game .game__bonus-image img {
  position: static !important;
  display: block;
  width: 78% !important;
  height: 78% !important;
  object-fit: contain !important;
  transform: none !important;
}

body.cfe-game .game__bonus-label {
  font-size: 10px !important;
  line-height: 1.1;
  letter-spacing: .04em;
}

body.cfe-game .game__bonus-title {
  max-width: 100%;
  overflow: hidden;
  font-size: 21px !important;
  line-height: 1.05 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.cfe-game .game__bonus-value {
  width: 62px !important;
  height: 62px !important;
  margin: 3px 7px 3px 5px !important;
  border-radius: 50% !important;
}

body.cfe-game .game__bonus-points { font-size: 25px !important; }
body.cfe-game .game__bonus-value-label { font-size: 10px !important; }

@media (max-width: 900px) {
  body.cfe-game .game__bonus {
    top: 70px !important;
    width: calc(100vw - 24px);
    max-width: 620px !important;
  }

  body.cfe-game .game__bonus-item,
  body.cfe-game .game__bonus-item > .row { min-height: 70px; }
  body.cfe-game .game__bonus-image { width: 58px !important; height: 58px !important; }
  body.cfe-game .game__bonus-title { font-size: 17px !important; }
  body.cfe-game .game__bonus-value { width: 54px !important; height: 54px !important; }
  body.cfe-game .game__bonus-points { font-size: 21px !important; }
}

@media (min-width: 901px) and (max-height: 620px) {
  body.cfe-game .game__bonus { top: 7px !important; max-width: 640px !important; }
  body.cfe-game .game__bonus-item,
  body.cfe-game .game__bonus-item > .row { min-height: 68px; }
  body.cfe-game .game__bonus-image { width: 56px !important; height: 56px !important; }
  body.cfe-game .game__bonus-title { font-size: 18px !important; }
  body.cfe-game .game__bonus-value { width: 54px !important; height: 54px !important; }
  body.cfe-game .game__bonus-points { font-size: 21px !important; }
}

.cfe-leaderboard-shell {
  position: fixed;
  z-index: 40;
  inset: 0;
  font-family: "Angus", Arial, Helvetica, sans-serif;
  pointer-events: none;
}

.cfe-ranking-trigger {
  position: absolute;
  right: 25px;
  bottom: 25px;
  border: 2px solid #000;
  border-radius: 999px;
  padding: 13px 22px 11px;
  background: #ffea59;
  box-shadow: 4px 4px 0 #000;
  color: #000;
  font: 900 15px/1 "Angus", Arial, Helvetica, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: auto;
  cursor: pointer;
}

.cfe-ranking-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(6px);
  transition: opacity .25s ease;
}

.cfe-ranking-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  box-sizing: border-box;
  width: min(780px, calc(100vw - 34px));
  max-height: min(860px, calc(100vh - 34px));
  overflow: auto;
  border: 3px solid #000;
  border-radius: 35px;
  padding: clamp(25px, 4vw, 46px);
  opacity: 0;
  background: #fffdf7;
  box-shadow: 12px 14px 0 #000;
  color: #000;
  text-align: center;
  transform: translate(-50%, -46%) scale(.96);
  transition: opacity .25s ease, transform .35s cubic-bezier(.16, 1, .3, 1);
}

.cfe-leaderboard-shell.is-open { pointer-events: auto; }
.cfe-leaderboard-shell.is-open .cfe-ranking-backdrop { opacity: 1; }
.cfe-leaderboard-shell.is-open .cfe-ranking-panel { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cfe-leaderboard-shell.is-open .cfe-ranking-trigger { visibility: hidden; }

.cfe-ranking-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 2px solid #000;
  border-radius: 50%;
  background: #fff;
  box-shadow: 3px 3px 0 #000;
  color: #000;
  font: 900 25px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.cfe-ranking-kicker {
  margin: 0 0 8px;
  color: #ef623f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cfe-ranking-panel h2 {
  margin: 0;
  font-size: clamp(32px, 6vw, 62px);
  line-height: .95;
  text-transform: uppercase;
}

.cfe-ranking-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 13px 0 20px;
}

.cfe-ranking-score strong { font-size: clamp(42px, 7vw, 72px); line-height: 1; }
.cfe-ranking-score span { font-size: 13px; font-weight: 900; text-transform: uppercase; }

.cfe-ranking-form { margin: 0 auto 26px; }
.cfe-ranking-form > label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.cfe-ranking-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

.cfe-ranking-form input {
  min-width: 0;
  border: 2px solid #000;
  border-radius: 999px;
  padding: 15px 20px;
  background: #fff;
  color: #000;
  font: 700 18px/1.1 "Angus", Arial, Helvetica, sans-serif;
  outline: 0;
}

.cfe-ranking-form input:focus { box-shadow: 0 0 0 4px #71d6b2; }
.cfe-ranking-form input:disabled { opacity: .65; }

.cfe-ranking-form button {
  border: 2px solid #000;
  border-radius: 999px;
  padding: 14px 22px;
  background: #16a8ee;
  box-shadow: 3px 4px 0 #000;
  color: #fff;
  font: 900 14px/1 "Angus", Arial, Helvetica, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}

.cfe-ranking-form button:disabled { opacity: .65; cursor: default; }
.cfe-ranking-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }
.cfe-ranking-status { min-height: 18px; margin: 11px 0 0; font-size: 13px; }

.cfe-ranking-board {
  overflow: hidden;
  border: 2px solid #000;
  border-radius: 24px;
  background: #fff;
  text-align: left;
}

.cfe-ranking-board > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 18px 11px;
  background: linear-gradient(90deg, #ef4e77, #ff9349 27%, #ffea59 53%, #71d6b2 76%, #54cce8);
  border-bottom: 2px solid #000;
}

.cfe-ranking-board h3 { margin: 0; font-size: 24px; text-transform: uppercase; }
.cfe-ranking-board > div span { font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.cfe-ranking-list { margin: 0; padding: 0; list-style: none; }

.cfe-ranking-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  border-bottom: 1px solid rgba(0, 0, 0, .16);
  padding: 4px 17px;
  font-size: 14px;
}

.cfe-ranking-list li:last-child { border-bottom: 0; }
.cfe-ranking-list li.is-current { background: #fff2a9; }
.cfe-ranking-list li span { font-weight: 900; opacity: .48; }
.cfe-ranking-list li strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfe-ranking-list li b { font-size: 13px; white-space: nowrap; }
.cfe-ranking-list .cfe-ranking-empty { display: block; padding: 19px; text-align: center; }

/* the honest line under a board that has no server behind it yet */
.cfe-ranking-note {
  margin: 0;
  padding: 11px 17px 13px;
  border-top: 1px solid rgba(0, 0, 0, .16);
  background: rgba(0, 0, 0, .04);
  font-size: 12px;
  line-height: 1.45;
  opacity: .72;
}
.cfe-ranking-note[hidden] { display: none; }

@media (max-width: 620px) {
  .cfe-ranking-panel { border-radius: 26px; padding: 25px 17px 20px; }
  .cfe-ranking-close { top: 12px; right: 12px; width: 39px; height: 39px; }
  .cfe-ranking-kicker { max-width: 210px; margin-right: auto; margin-left: auto; }
  .cfe-ranking-form > div { grid-template-columns: 1fr; }
  .cfe-ranking-form button { min-height: 48px; }
  .cfe-ranking-score { margin-bottom: 15px; }
  .cfe-ranking-list li { grid-template-columns: 31px minmax(0, 1fr) auto; padding-right: 11px; padding-left: 11px; }
  .cfe-ranking-trigger { right: 15px; bottom: 15px; }
}
