/* Rating cards, made louder (home44): the Google card is the hero. */

.rating { grid-template-columns: 1fr; width: min(100% - 2.5em, 32em); align-items: stretch; }
.mwg_effect070 .container { padding-top: 32svh; } /* more room for the bigger card */

.rating__card.is--google {
  gap: 0.6em;
  padding: 1.1em 1.5em 1.25em;
  box-shadow: .4em .4em 0 var(--ink); /* hard sticker shadow */
  rotate: -1.5deg;
  transition: rotate .35s cubic-bezier(.34, 1.56, .64, 1), background-color .3s, color .3s;
}
.rating__card.is--google:is(:hover, :focus-visible) { rotate: 1deg; }

.rating__card.is--google .rating__source { justify-content: flex-start; font-size: 1.25rem; }
.rating__stars { margin-left: .4em; color: #fbdb4b; letter-spacing: .08em; font-size: 1.25rem; }
.rating__card.is--google .rating__arrow { margin-left: auto; }

.rating__card.is--google .rating__figures { align-items: flex-end; flex-wrap: nowrap; }
.rating__card.is--google .rating__score { font-size: clamp(4rem, 9vw, 7rem); line-height: .85; }
.rating__card.is--google .rating__score .rating__num { color: #fbdb4b; } /* print-menu yellow */
.rating__card.is--google .rating__count { display: grid; justify-items: end; font-size: 1.125rem; font-weight: 700; line-height: 1; }
.rating__card.is--google .rating__count strong { font: 400 clamp(2.25rem, 5vw, 4rem)/.9 var(--font-display); }

.rating__card.is--google:hover .rating__stars { animation: rating-twinkle .6s ease-in-out; }
@keyframes rating-twinkle { 50% { letter-spacing: .25em; } }

@media (max-width: 760px) {
  .rating { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .rating__card.is--google { rotate: 0deg; transition: none; }
  .rating__card.is--google:hover .rating__stars { animation: none; }
  .mwg_effect070 .container { padding-top: 1.25em; }
}

/* The sticker takes the arrow's corner, so the arrow is hidden on the Google card */
.rating__card.is--google .rating__arrow { display: none; }

/* Sticker on the Google card: rotating ring text, yellow disc, ink outline */
.rating__item.is--hero { position: relative; }
.rating__sticker {
  position: absolute; z-index: 2;
  top: -2.8em; right: -1.2em;
  width: 6.5em; height: 6.5em;
  rotate: 12deg;
  pointer-events: none;
  filter: drop-shadow(.2em .2em 0 var(--ink));
}
.rating__sticker svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rating__sticker-disc { fill: #fbdb4b; stroke: var(--ink); stroke-width: 3; }
.rating__sticker-ring { transform-origin: 60px 60px; animation: rating-sticker-spin 16s linear infinite; }
.rating__sticker-ring text { fill: var(--ink); font: 700 10.5px/1 var(--font-sans); letter-spacing: .02em; }
.rating__sticker-num { fill: var(--ink); font: 400 34px/1 var(--font-display); }
@keyframes rating-sticker-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .rating__sticker { top: -2.2em; right: -.6em; width: 5.5em; height: 5.5em; }
}
@media (prefers-reduced-motion: reduce) {
  .rating__sticker-ring { animation: none; }
}
