@media (max-width: 991px) {
  html.ec-mobile-app {
    background: #f7faf9;
    overscroll-behavior-y: contain;
  }

  html.ec-mobile-app body {
    min-height: 100vh;
    background: #f7faf9;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
  }

  html.ec-mobile-app input,
  html.ec-mobile-app select,
  html.ec-mobile-app textarea {
    font-size: 16px !important;
  }

  html.ec-mobile-app a,
  html.ec-mobile-app button,
  html.ec-mobile-app .nav-item {
    -webkit-tap-highlight-color: transparent;
  }

  html.ec-mobile-app body.ec-app-entering {
    opacity: 1;
  }

  html.ec-mobile-app body.ec-app-ready {
    opacity: 1;
    transition: opacity 180ms ease;
  }

  .ec-route-loader {
    position: fixed;
    top: env(safe-area-inset-top, 0);
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1030;
    pointer-events: none;
    opacity: 0;
    overflow: hidden;
    background: rgba(2, 39, 40, 0.06);
    transition: opacity 140ms ease;
  }

  .ec-route-loader::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -45%;
    width: 45%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 194, 146, 0), #00c292, #037963);
    animation: ec-route-loader 950ms cubic-bezier(0.45, 0, 0.2, 1) infinite;
  }

  body.ec-content-loading .ec-route-loader {
    opacity: 1;
  }

  .ec-content-flash {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    left: 14px;
    right: 14px;
    z-index: 1020;
    display: none;
    pointer-events: none;
  }

  body.ec-app-entering .ec-content-flash,
  body.ec-content-loading .ec-content-flash {
    display: block;
  }

  .ec-content-flash-inner {
    max-width: 460px;
    margin: 0 auto;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 40px rgba(2, 39, 40, 0.12);
    backdrop-filter: blur(16px) saturate(145%);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
  }

  .ec-flash-line,
  .ec-flash-card,
  .ec-flash-thumb {
    position: relative;
    overflow: hidden;
    background: #edf3f1;
  }

  .ec-flash-line::after,
  .ec-flash-card::after,
  .ec-flash-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: ec-skeleton-shimmer 1.1s ease-in-out infinite;
  }

  .ec-flash-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .ec-flash-thumb {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    flex: 0 0 46px;
  }

  .ec-flash-copy {
    flex: 1;
    min-width: 0;
  }

  .ec-flash-line {
    height: 10px;
    border-radius: 999px;
    margin-bottom: 8px;
  }

  .ec-flash-line.short {
    width: 58%;
  }

  .ec-flash-line.long {
    width: 88%;
  }

  .ec-flash-card {
    height: 38px;
    border-radius: 16px;
    margin-top: 10px;
  }

  @keyframes ec-skeleton-shimmer {
    100% { transform: translateX(100%); }
  }

  @keyframes ec-route-loader {
    from { transform: translateX(0); }
    to { transform: translateX(330%); }
  }

  .ec-app-reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 260ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }

  .ec-app-reveal.ec-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .event-card,
  .category-col,
  .nominee-card,
  .ticket-card,
  .category-card,
  .contestant-card,
  .trending-card-wrapper,
  .app-card-wrapper-horizontal,
  .app-card-wrapper-vertical,
  .card.card-custom {
    content-visibility: auto;
    contain-intrinsic-size: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.ec-mobile-app body,
  .ec-app-reveal,
  .ec-route-loader::before {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
