html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 92px;
  background: #fff;
  color: #171717;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  position: relative;
}

body::before {
  display: none;
}

.whc-page {
  margin: 0;
  min-height: calc(100vh - 92px);
  padding: 22px clamp(14px, 2vw, 34px) 34px;
  width: 100%;
}

.experiment-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 20px;
}

.experiment-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 2.7vw, 3rem);
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
}

.experiment-header p {
  color: #525252;
  font-size: 1rem;
  margin: 6px 0 0;
}

.experiment-note {
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  color: #404040;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.country-panel,
.ranking-panel {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
}

.country-panel {
  padding: 20px;
  margin-bottom: 12px;
}

.country-panel-header,
.ranking-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.country-panel-header h2,
.ranking-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
}

.country-panel-header p,
.ranking-header p {
  color: #667085;
  font-size: 0.9rem;
  margin: 4px 0 0;
}

.country-count {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  color: #525252;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 10px;
}

.search-shell {
  align-items: center;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 12px;
}

.search-shell span {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.search-shell .form-control {
  border: 0;
  box-shadow: none;
  min-height: 44px;
  padding-left: 0;
}

.completed-flags-hall {
  margin: 14px 0;
}

.live-activity {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  margin: 14px 0;
  min-height: 46px;
  padding: 10px 12px;
}

.live-activity-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.live-activity-heading strong {
  align-items: center;
  color: #171717;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  gap: 7px;
}

.live-pulse-dot {
  animation: livePulseDot 1.45s ease-in-out infinite;
  background: #16a34a;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.42);
  display: inline-block;
  height: 8px;
  width: 8px;
}

.live-activity-heading span {
  color: #737373;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
}

.live-activity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.live-activity:not(.has-activity) .live-activity-list {
  display: none;
}

.live-activity-item {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  color: #525252;
  display: inline-flex;
  font-size: 0.78rem;
  gap: 5px;
  line-height: 1.25;
  padding: 6px 8px;
}

.live-activity-item strong {
  color: #171717;
  font-weight: 900;
}

.human-mark-toast-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 28px));
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 2147483000;
}

.human-mark-toast {
  align-items: flex-start;
  animation: humanMarkToastIn 0.28s ease-out both;
  background: #0f8f4d;
  border: 1px solid #0b7a41;
  border-radius: 4px;
  box-shadow: 0 16px 38px rgba(15, 143, 77, 0.26);
  color: #fff;
  display: grid;
  gap: 10px;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 11px 12px;
}

.human-mark-toast.is-leaving {
  animation: humanMarkToastOut 0.28s ease-in both;
}

.human-mark-toast-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.human-mark-toast-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  line-height: 1;
  width: 28px;
}

.human-mark-toast-body {
  display: flex;
  flex-direction: column;
  font-size: 0.86rem;
  gap: 2px;
  line-height: 1.3;
}

.human-mark-toast-body strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 600;
}

.human-mark-toast-body span {
  color: rgba(255, 255, 255, 0.88);
}

.completed-flags-empty,
.completed-flags-header {
  align-items: center;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 44px;
  padding: 8px 12px;
}

.completed-flags-empty strong,
.completed-flags-header strong {
  color: #111827;
  font-size: 0.9rem;
  font-weight: 900;
}

.completed-flags-empty span,
.completed-flags-header span {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
}

.completed-flags-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-top: 8px;
}

.completed-flag-item {
  align-items: center;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  color: #171717;
  cursor: pointer;
  display: grid;
  gap: 7px;
  grid-template-columns: auto 34px minmax(0, 1fr) auto;
  min-height: 46px;
  padding: 7px 9px;
  text-align: left;
}

.completed-flag-item:hover,
.completed-flag-item:focus {
  border-color: #171717;
  outline: none;
}

.completed-flag-rank {
  color: #171717;
  font-size: 0.82rem !important;
  font-weight: 900;
  min-height: 0 !important;
}

.completed-flag-item img {
  border: 1px solid #d9dee8;
  border-radius: 4px;
  height: 23px;
  object-fit: cover;
  width: 34px;
}

.completed-flag-name {
  color: #111827;
  display: block !important;
  font-size: 0.82rem !important;
  font-weight: 900;
  line-height: 1.1 !important;
  min-height: 0 !important;
  overflow: hidden;
  text-align: left !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.completed-flag-badge {
  background: #171717;
  border-radius: 4px;
  color: #fff !important;
  display: inline-flex !important;
  font-size: 0.72rem !important;
  font-weight: 900;
  justify-content: center;
  min-height: 0 !important;
  padding: 3px 7px;
}

.country-grid {
  content-visibility: auto;
  contain-intrinsic-size: 700px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  max-height: calc(100vh - 250px);
  min-height: min(560px, calc(100vh - 250px));
  overflow: auto;
  padding-right: 4px;
}

.country-flag-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #344054;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: flex-start;
  min-height: 106px;
  padding: 8px 6px;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.human-flag-card {
  background: #fff;
  border-color: #dedede;
  justify-content: flex-start;
  min-height: 190px;
  padding: 10px;
}

.human-flag-card.is-live-updated {
  animation: humanFlagCardPulse 1.45s ease-out both;
}

.country-flag-button:hover,
.country-flag-button:focus {
  background: #fafafa;
  border-color: #171717;
  outline: none;
}

.country-flag-button span {
  display: -webkit-box;
  font-size: 0.76rem;
  line-height: 1.18;
  max-width: 100%;
  min-height: 1.8em;
  overflow: hidden;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.human-flag-frame {
  aspect-ratio: 16 / 10;
  background: #eef2f7;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  display: block !important;
  max-width: 100%;
  min-height: 0 !important;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.human-flag-frame::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent 42%, rgba(17, 24, 39, 0.12));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.human-flag-live-fill {
  bottom: 0;
  display: block !important;
  left: 0;
  min-height: 0 !important;
  overflow: hidden;
  position: absolute;
  top: 0;
  width: var(--human-flag-fill);
  z-index: 4;
}

.human-flag-live-fill::before,
.human-flag-live-fill::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.human-flag-live-fill::before {
  animation: humanFlagFlow 4.8s linear infinite;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0) 18px,
      rgba(255, 255, 255, 0.2) 24px,
      rgba(255, 255, 255, 0) 36px
    );
  background-size: 72px 72px;
  opacity: 0.72;
}

.human-flag-live-fill::after {
  animation: humanFlagPulse 2.6s ease-in-out infinite;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), transparent 58%);
  mix-blend-mode: screen;
}

.human-flag-image,
.human-flag-canvas {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  height: 100%;
  image-rendering: pixelated;
  object-fit: cover;
  padding: 0;
  width: 100%;
}

.human-flag-canvas {
  background: #d9dee8;
}

.human-flag-canvas-error {
  background:
    linear-gradient(135deg, #d9dee8 25%, #eef2f7 25%, #eef2f7 50%, #d9dee8 50%, #d9dee8 75%, #eef2f7 75%);
  background-size: 12px 12px;
}

.human-flag-image-muted {
  filter: grayscale(1) saturate(0) contrast(0.86) brightness(1.08);
  opacity: 0.46;
}

.human-flag-color-fill {
  bottom: 0;
  display: block !important;
  left: 0;
  min-height: 0 !important;
  overflow: hidden;
  position: absolute;
  top: 0;
  width: var(--human-flag-fill);
  z-index: 2;
}

.human-flag-color-fill::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size:
    calc(100% / var(--human-flag-columns)) calc(100% / var(--human-flag-rows)),
    calc(100% / var(--human-flag-columns)) calc(100% / var(--human-flag-rows));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.human-flag-image-color {
  height: 100%;
  max-width: none;
  width: 100%;
}

.human-flag-pixel-grid {
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.12) 1px, transparent 1px);
  background-size:
    calc(100% / var(--human-flag-columns)) calc(100% / var(--human-flag-rows)),
    calc(100% / var(--human-flag-columns)) calc(100% / var(--human-flag-rows));
  display: block !important;
  inset: 0;
  min-height: 0 !important;
  mix-blend-mode: multiply;
  opacity: 0.58;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.human-flag-name {
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem !important;
  font-weight: 600;
  min-height: 1.25em !important;
}

.country-flag-button small,
.human-flag-meta {
  color: #667085;
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 2px;
  line-height: 1.2;
  min-height: 1.2em;
  text-align: center;
  width: 100%;
}

.human-flag-meta span {
  display: block;
  min-height: 0 !important;
  overflow: visible;
  text-align: center;
}

.human-flag-card.is-live-updated .human-flag-meta {
  animation: humanFlagNumberPulse 1.45s ease-out both;
}

.human-flag-card.is-live-updated .country-fill-percent {
  animation: humanFlagBadgePulse 1.45s ease-out both;
}

.country-tile-count {
  align-items: center;
  background: #111827;
  border: 2px solid #fff;
  border-radius: 4px;
  color: #fff !important;
  display: inline-flex !important;
  font-size: 0.7rem !important;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  line-height: 1;
  min-height: 24px !important;
  min-width: 24px;
  padding: 0 6px;
  position: absolute;
  right: 14px;
  top: 4px;
  z-index: 1;
}

.country-fill-percent {
  align-items: center;
  background: #404040;
  border: 2px solid #fff;
  border-radius: 4px;
  color: #fff !important;
  display: inline-flex !important;
  font-size: 0.68rem !important;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  line-height: 1;
  margin: -2px 0 -1px;
  min-height: 22px !important;
  min-width: 24px;
  padding: 0 7px;
  position: static;
  z-index: 5;
}

.country-flag {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid #d9dee8;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
  height: 64px;
  object-fit: cover;
  padding: 4px;
  width: 64px;
}

.country-flag.human-flag-image {
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 100%;
  padding: 0;
  width: 100%;
}

.ranking-panel {
  overflow: hidden;
}

.ranking-header {
  background: #fafafa;
  border-bottom: 1px solid #e5e5e5;
  margin: 0;
  padding: 16px 18px;
}

.ranking-list {
  max-height: 445px;
  overflow: auto;
  padding: 6px 14px;
}

.ranking-row {
  align-items: center;
  border-bottom: 1px solid #edf0f4;
  display: grid;
  gap: 12px;
  grid-template-columns: 44px 48px minmax(0, 1fr) auto;
  min-height: 62px;
  padding: 10px 0;
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-rank {
  align-items: center;
  background: #eef4ff;
  border-radius: 999px;
  color: #245bc9;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.ranking-medal {
  background: #fff7df;
  color: #7a4f00;
}

.ranking-flag {
  border-radius: 4px;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.12);
  height: 30px;
  object-fit: cover;
  width: 45px;
}

.ranking-country {
  color: #111827;
  display: block;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-participants {
  color: #667085;
  font-size: 0.88rem;
  white-space: nowrap;
}

.experiment-cta {
  border-radius: 4px;
  font-weight: 800;
  margin-top: 10px;
  min-height: 48px;
}

.purchase-modal {
  padding: 4px;
}

.purchase-hero {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 128px minmax(0, 1fr);
}

.purchase-flag {
  aspect-ratio: 16 / 10;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  box-shadow: none;
  height: auto;
  object-fit: cover;
  width: 128px;
}

.purchase-eyebrow {
  color: #525252;
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.purchase-hero h3 {
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

.purchase-hero p {
  color: #667085;
  font-size: 0.88rem;
  line-height: 1.35;
  margin: 6px 0 0;
}

.digital-product-note {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  color: #525252;
  font-size: 0.82rem;
  line-height: 1.45;
  margin-top: 10px;
  padding: 10px;
}

.digital-product-note strong {
  color: #111827;
}

.tile-form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.country-purchase-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.country-purchase-stats div {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 9px;
}

.country-purchase-stats strong {
  color: #111827;
  display: block;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
}

.country-purchase-stats span {
  color: #667085;
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 3px;
}

.human-flag-progress {
  background: #f5f5f5;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  height: 9px;
  margin-top: 10px;
  overflow: hidden;
}

.human-flag-progress span {
  background: #171717;
  display: block;
  height: 100%;
  min-width: 0;
}

.human-flag-progress-label {
  color: #667085;
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  margin-top: 5px;
}

.tile-form-grid label {
  color: #344054;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.tile-form-grid .form-control {
  font-size: 0.9rem;
}

.mark-quantity-presets {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.mark-quantity-preset {
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  color: #404040;
  font-weight: 800;
  min-height: 38px;
}

.mark-quantity-preset.active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.mark-quantity-preset:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.anonymous-check {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  color: #525252;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 10px;
  padding: 10px 10px 10px 34px;
}

.purchase-terms {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  color: #525252;
  font-size: 0.82rem;
  line-height: 1.35;
  margin-top: 12px;
  padding: 10px 10px 10px 34px;
}

.purchase-modal #participateButton {
  background: #171717;
  border-color: #171717;
  border-radius: 4px;
  font-weight: 900;
  margin-top: 12px;
  min-height: 46px;
}

.payment-coin {
  align-items: center;
  animation: paymentCoinFlight 2.45s cubic-bezier(0.22, 0.78, 0.2, 1) forwards;
  background: radial-gradient(circle at 32% 28%, #fff7b0 0%, #f7c948 32%, #d79215 70%, #9f5f00 100%);
  border: 8px solid #ffdf6d;
  border-radius: 999px;
  box-shadow: 0 28px 70px rgba(94, 55, 0, 0.34), inset 0 0 0 8px rgba(255, 255, 255, 0.22);
  color: #5b3300;
  display: flex;
  font-size: clamp(2rem, 7vw, 6rem);
  font-weight: 900;
  height: var(--coin-size);
  justify-content: center;
  left: 0;
  line-height: 1;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translate3d(var(--coin-start-x), var(--coin-start-y), 0) rotateY(0deg) scale(1);
  transform-style: preserve-3d;
  width: var(--coin-size);
  z-index: 2147483647;
}

.payment-coin::before {
  border: 3px solid rgba(91, 51, 0, 0.28);
  border-radius: inherit;
  content: "";
  inset: 12%;
  position: absolute;
}

.payment-coin span {
  position: relative;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.42);
}

.cookie-banner {
  align-items: center;
  background: rgba(17, 24, 39, 0.96);
  bottom: 28px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.88rem;
  gap: 6px;
  justify-content: center;
  left: 0;
  padding: 9px 14px;
  position: fixed;
  right: 0;
  text-align: center;
  z-index: 9999;
}

.cookie-banner a {
  color: #93c5fd;
}

.cookie-banner button {
  background: #fff;
  border: 0;
  border-radius: 5px;
  color: #111827;
  font-weight: 800;
  padding: 3px 10px;
}

.site-footer {
  bottom: 0;
  font-size: 0.86rem;
  left: 0;
  padding: 4px 8px;
  position: fixed;
  right: 0;
  z-index: 9998;
}

#CountryInfo .modal-content {
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.12);
}

#CountryInfo .modal-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

#CountryInfo .modal-title {
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

#CountryInfo .modal-header .btn {
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  color: #404040;
  font-weight: 800;
}

@keyframes paymentCoinFlight {
  0% {
    opacity: 0;
    transform: translate3d(var(--coin-start-x), var(--coin-start-y), 0) rotateY(0deg) scale(0.65);
  }

  10% {
    opacity: 1;
    transform: translate3d(var(--coin-start-x), var(--coin-start-y), 0) rotateY(180deg) scale(1);
  }

  28% {
    opacity: 1;
    transform: translate3d(var(--coin-start-x), var(--coin-start-y), 0) rotateY(720deg) scale(1.08);
  }

  52% {
    opacity: 1;
    transform: translate3d(var(--coin-start-x), var(--coin-start-y), 0) rotateY(1080deg) scale(1);
  }

  78% {
    opacity: 1;
    transform: translate3d(var(--coin-end-x), var(--coin-end-y), 0) rotateY(1440deg) scale(0.16);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--coin-end-x), var(--coin-end-y), 0) rotateY(1620deg) scale(0.04);
  }
}

@keyframes humanFlagFlow {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 72px 0;
  }
}

@keyframes humanFlagPulse {
  0%,
  100% {
    opacity: 0.18;
  }

  50% {
    opacity: 0.46;
  }
}

@keyframes humanMarkToastIn {
  from {
    opacity: 0;
    transform: translate3d(12px, -8px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes humanMarkToastOut {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: 0;
    transform: translate3d(12px, -8px, 0);
  }
}

@keyframes humanFlagCardPulse {
  0% {
    border-color: #16a34a;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.28);
    transform: translateY(0);
  }

  38% {
    border-color: #16a34a;
    box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.1);
    transform: translateY(-1px);
  }

  100% {
    border-color: #dedede;
    box-shadow: none;
    transform: translateY(0);
  }
}

@keyframes humanFlagNumberPulse {
  0%,
  100% {
    color: #667085;
    transform: scale(1);
  }

  28% {
    color: #0f8f4d;
    transform: scale(1.08);
  }
}

@keyframes humanFlagBadgePulse {
  0%,
  100% {
    background: #404040;
    transform: scale(1);
  }

  28% {
    background: #0f8f4d;
    transform: scale(1.08);
  }
}

@keyframes livePulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45);
    opacity: 0.86;
  }

  70% {
    box-shadow: 0 0 0 7px rgba(22, 163, 74, 0);
    opacity: 1;
  }

  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    opacity: 0.86;
  }
}

@media (max-width: 991.98px) {
  .experiment-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .country-grid,
  .ranking-list {
    max-height: none;
  }

  .country-grid {
    min-height: 360px;
  }
}

@media (max-width: 575.98px) {
  body {
    margin-bottom: 82px;
  }

  .whc-page {
    min-height: calc(100vh - 82px);
    padding: 8px 10px 20px;
  }

  .experiment-header {
    align-items: flex-start;
    flex-direction: row;
    gap: 8px;
    margin: 0 0 8px;
  }

  .experiment-header h1 {
    font-size: 1.25rem;
    line-height: 1.1;
  }

  .experiment-header p {
    font-size: 0.78rem;
    line-height: 1.25;
    margin-top: 2px;
  }

  .experiment-note {
    font-size: 0.64rem;
    padding: 5px 7px;
  }

  .country-panel {
    padding: 9px;
  }

  .country-panel-header {
    align-items: center;
    margin-bottom: 8px;
  }

  .country-panel-header h2 {
    font-size: 1.05rem;
  }

  .country-panel-header p {
    display: none;
  }

  .country-count {
    font-size: 0.68rem;
    padding: 5px 8px;
  }

  .live-activity {
    margin: 8px 0;
    min-height: 36px;
    padding: 8px 9px;
  }

  .live-activity-heading {
    gap: 8px;
  }

  .live-activity-heading strong {
    font-size: 0.82rem;
  }

  .live-activity-heading span {
    font-size: 0.7rem;
  }

  .live-activity-list {
    gap: 6px;
    margin-top: 6px;
  }

  .live-activity-item {
    font-size: 0.7rem;
    padding: 5px 6px;
  }

  .completed-flags-hall {
    margin: 8px 0;
  }

  .completed-flags-empty,
  .completed-flags-header {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    min-height: 36px;
    padding: 7px 9px;
  }

  .completed-flags-empty strong,
  .completed-flags-header strong {
    font-size: 0.82rem;
  }

  .completed-flags-empty span,
  .completed-flags-header span {
    font-size: 0.68rem;
    line-height: 1.2;
    text-align: right;
  }

  .search-shell {
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 10px;
  }

  .search-shell span {
    font-size: 0.7rem;
  }

  .search-shell .form-control {
    font-size: 0.82rem;
    min-height: 38px;
  }

  .cookie-banner {
    bottom: 29px;
    font-size: 0.78rem;
    line-height: 1.35;
    padding: 8px 12px;
  }

  .human-mark-toast-stack {
    left: 12px;
    max-width: none;
    right: 12px;
    top: 12px;
  }

  .site-footer {
    font-size: 0.72rem;
  }

  .country-grid {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 420px;
  }

  .country-flag-button {
    gap: 5px;
  }

  .human-flag-card {
    min-height: 168px;
    padding: 8px;
  }

  .human-flag-name {
    font-size: 0.92rem !important;
    line-height: 1.1 !important;
  }

  .human-flag-meta {
    font-size: 0.66rem;
    line-height: 1.15;
  }

  .country-fill-percent {
    font-size: 0.64rem !important;
    height: 22px;
    margin: -2px 0 -1px;
    min-height: 22px !important;
    padding: 0 6px;
  }

  .country-flag {
    height: 56px;
    width: 56px;
  }

  .purchase-hero {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .tile-form-grid {
    grid-template-columns: 1fr;
  }

  .purchase-flag {
    width: 96px;
  }

  .ranking-row {
    grid-template-columns: 36px 44px minmax(0, 1fr);
  }

  .ranking-participants {
    grid-column: 3;
  }
}
