/*
 * ELEVN — Team Fan Zone
 * FZG-P1-M3-D2
 *
 * Dedicated mobile-first ZONE shell.
 * Everything is scoped to .elevn-fz.
 */

.elevn-fz {
  --fz-surface: #fff;
  --fz-border: rgba(0, 0, 0, .08);
  --fz-muted: #6b7280;
  --fz-soft: rgba(0, 0, 0, .035);
}

body.night-mode .elevn-fz {
  --fz-surface: var(--card-dark-color);
  --fz-border: rgba(255, 255, 255, .09);
  --fz-muted: #8fa2b3;
  --fz-soft: rgba(255, 255, 255, .045);
}

.elevn-fz-main {
  width: 100%;
  max-width: 820px;
  margin: 18px auto 0;
}

.elevn-fz-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--fz-border);
  border-radius: 18px;
  background: var(--fz-surface);
}

.elevn-fz-logo {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: block;
  object-fit: contain;
  padding: 6px;
  border: 1px solid var(--fz-border);
  border-radius: 18px;
  background: #fff;
}

.elevn-fz-identity-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.elevn-fz-title {
  margin: 0;
  overflow: hidden;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.elevn-fz-kicker {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .08em;
  color: var(--link-color);
}

.elevn-fz-members {
  margin-top: 6px;
  color: var(--fz-muted);
  font-size: 13px;
  font-weight: 600;
}

.elevn-fz-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.elevn-fz-actions .btn {
  min-height: 40px;
}

.elevn-fz-more {
  width: 40px;
  height: 40px;
  min-height: 40px !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.elevn-fz-nav {
  margin: 12px 0 14px;
  padding: 5px;
  border: 1px solid var(--fz-border);
  border-radius: 15px;
  background: var(--fz-surface);
}

.elevn-fz-nav__item {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--link-color);
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-decoration: none !important;
}


/* ELEVN UX-STAND-LIVE-DOT-P1 — live Stand tab indicator */

.elevn-fz-nav__live-dot {
  position: relative;

  width: 7px;
  height: 7px;
  flex: 0 0 7px;

  margin-left: 7px;

  border-radius: 50%;

  background: #e43b42;

  box-shadow:
    0 0 0 2px
    rgba(228, 59, 66, 0.12);
}

.elevn-fz-nav__live-dot::after {
  position: absolute;
  inset: -3px;

  border: 1px solid
    rgba(228, 59, 66, 0.72);
  border-radius: 50%;

  content: "";

  animation:
    elevn-fz-stand-live-pulse
    1.4s
    ease-out
    infinite;
}

@keyframes elevn-fz-stand-live-pulse {
  0% {
    opacity: 0.85;

    transform:
      scale(0.72);
  }

  70%,
  100% {
    opacity: 0;

    transform:
      scale(1.65);
  }
}

@media (prefers-reduced-motion: reduce) {
  .elevn-fz-nav__live-dot::after {
    opacity: 0.35;

    transform: none;

    animation: none;
  }
}


.elevn-fz-stream {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.elevn-fz-create-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.elevn-fz-one-btn {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--fz-border);
  border-radius: 999px;
  background: var(--fz-surface);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}

.elevn-fz-one-btn:hover {
  color: var(--link-color);
}

.elevn-fz-one-btn i {
  margin-right: 7px;
  color: var(--link-color);
}

.elevn-fz-publisher {
  margin-bottom: 12px;
}

/*
 * The canonical publisher remains intact.
 * In Fan Zone context the template marks only:
 * - Video
 * - Photos
 * - Poll
 *
 * Text remains the canonical composer itself.
 * ONE uses the dedicated D1 modal.
 */
.elevn-fz-publisher
.publisher-tools-tabs
> ul.row
> li {
  display: none !important;
}

/*
 * FZG-PUBLISHER-UX-M2
 * Fan Zone keeps its allowed-tool filter only.
 * Layout and visual treatment intentionally inherit
 * the canonical Home publisher.
 */
.elevn-fz-publisher
.publisher-tools-tabs
> ul.row
> li.elevn-fz-publisher-allowed {
  display: block !important;
}

.elevn-fz-placeholder {
  padding: 30px 20px;
  border: 1px solid var(--fz-border);
  border-radius: 18px;
  background: var(--fz-surface);
  text-align: center;
}

.elevn-fz-placeholder__title {
  margin-bottom: 6px;
  font-weight: 800;
}

.elevn-fz-placeholder__text {
  color: var(--fz-muted);
  font-size: 13px;
}

@media (max-width: 767px) {
  .elevn-fz {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .elevn-fz .sg-offcanvas-mainbar {
    padding-left: 0;
    padding-right: 0;
  }

  .elevn-fz-main {
    margin-top: 8px;
  }

  .elevn-fz-identity {
    gap: 11px;
    margin-left: 4px;
    margin-right: 4px;
    padding: 13px;
    border-radius: 15px;
  }

  .elevn-fz-logo {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    border-radius: 14px;
  }

  .elevn-fz-title {
    font-size: 18px;
  }

  .elevn-fz-kicker {
    font-size: 10px;
  }

  .elevn-fz-members {
    font-size: 12px;
  }

  .elevn-fz-actions {
    gap: 6px;
  }

  .elevn-fz-actions
  .btn:not(.elevn-fz-more) {
    padding-left: 12px;
    padding-right: 12px;
  }

  .elevn-fz-actions
  .btn
  .elevn-fz-action-label {
    display: none;
  }

  .elevn-fz-nav {
    margin-left: 4px;
    margin-right: 4px;
    margin-bottom: 10px;
  }

  .elevn-fz-stream {
    max-width: none;
  }

  .elevn-fz-create-row {
    padding-left: 4px;
    padding-right: 4px;
  }

}

/* Fan Zone posts do not expose presence status */
.elevn-fz .post-avatar .online-dot {
  display: none !important;
}

/*
 * Hide the initial empty state after the canonical publisher
 * prepends the first post into the same stream <ul>.
 */
.elevn-fz .js_posts_stream > ul > li ~ .elevn-fz-no-data {
  display: none;
}


/* ==========================================================================
   ELEVN — THE STAND
   FZG-P1-CHAT-FE-A1
   Mobile-first shell.
   ========================================================================== */

.elevn-stand {
  width: 100%;
  padding: 0 12px 24px;
}

.elevn-stand__hero {
  padding: 20px 4px 16px;
}

.elevn-stand__brand {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
}

.elevn-stand__title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.12;
}

.elevn-stand__intro {
  margin: 8px 0 0;
  color: var(--fz-muted);
  font-size: 14px;
  line-height: 1.45;
}

.elevn-stand__state {
  padding: 18px 16px;
  border: 1px solid rgba(127, 127, 127, .22);
  border-radius: 16px;
}

.elevn-stand__state-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.elevn-stand__state-text {
  margin: 7px 0 0;
  color: var(--fz-muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .elevn-stand {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    padding: 8px 20px 32px;
  }

  .elevn-stand__hero {
    padding-top: 24px;
  }

  .elevn-stand__state {
    padding: 22px 20px;
  }
}


/* ============================================================
   ELEVN FZG-P1-STAND-RT-A4 — REALTIME
   Mobile-first THE STAND client surface
   ============================================================ */

.elevn-stand__realtime[hidden] {
  display: none !important;
}

.elevn-stand__realtime {
  width: 100%;
  min-width: 0;
  margin-top: 14px;
}

.elevn-stand__livebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.elevn-stand__live-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.elevn-stand__live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: currentColor;
}

.elevn-stand__provider-delay[hidden] {
  display: none !important;
}

.elevn-stand__provider-delay {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;

  padding: 2px 6px;
  border: 1px solid rgba(229, 181, 63, 0.32);
  border-radius: 999px;

  color: #e5b53f;
  background: rgba(229, 181, 63, 0.08);

  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.elevn-stand__provider-delay::before {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;

  border-radius: 50%;
  background: currentColor;

  content: "";
}


.elevn-stand__occupancy {
  opacity: 0.72;
  text-align: end;
  font-weight: 600;
}

.elevn-stand__messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-height: 160px;
  max-height: 52vh;
  padding: 10px 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.elevn-stand__message {
  align-self: flex-start;
  width: fit-content;
  max-width: 88%;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(127, 127, 127, 0.10);
  overflow-wrap: anywhere;
}

.elevn-stand__message.is-own {
  align-self: flex-end;
  background: rgba(127, 127, 127, 0.18);
}

.elevn-stand__message.is-system {
  align-self: center;
  max-width: 94%;
  padding: 5px 8px;
  background: transparent;
  opacity: 0.72;
  text-align: center;
  font-size: 0.82rem;
}

.elevn-stand__message.is-deleted {
  opacity: 0.58;
  font-style: italic;
}

.elevn-stand__message-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.elevn-stand__composer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  padding: 10px 0 max(10px, env(safe-area-inset-bottom));
  background: inherit;
}

.elevn-stand__composer.is-disabled {
  opacity: 0.7;
}

.elevn-stand__input {
  min-width: 0;
  min-height: 42px;
  max-height: 112px;
  resize: none;
}

.elevn-stand__send {
  flex: 0 0 auto;
  min-height: 42px;
}

@media (min-width: 768px) {
  .elevn-stand__messages {
    max-height: 480px;
  }

  .elevn-stand__message {
    max-width: 72%;
  }
}

/* ELEVN MC-PROD-M4-A4 — supporter ratings */

.elevn-stand__ratings[hidden] {
  display: none !important;
}

.elevn-stand__ratings {
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid rgba(127, 127, 127, 0.28);
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.08);
}

.elevn-stand__ratings-head {
  position: relative;
  margin-bottom: 10px;
  min-height: 34px;
  padding-right: 72px;
}

.elevn-stand__ratings-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  min-width: 56px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.elevn-stand__ratings.is-collapsed
.elevn-stand__ratings-head {
  margin-bottom: 0;
}

.elevn-stand__ratings.is-collapsed
.elevn-stand__ratings-text,
.elevn-stand__ratings.is-collapsed
.elevn-stand__ratings-status,
.elevn-stand__ratings.is-collapsed
.elevn-stand__ratings-list {
  display: none;
}

.elevn-stand__ratings-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.elevn-stand__ratings-text {
  margin: 4px 0 0;
  font-size: 0.86rem;
  line-height: 1.4;
  opacity: 0.78;
}

.elevn-stand__ratings-status {
  min-height: 1.25em;
  margin-bottom: 8px;
  font-size: 0.82rem;
  line-height: 1.35;
  opacity: 0.86;
}

.elevn-stand__ratings-list {
  display: grid;
  gap: 7px;
  max-height: 22rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.elevn-stand__rating-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 92px;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 5px 0;
}

.elevn-stand__rating-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(127, 127, 127, 0.12);
}

.elevn-stand__rating-identity {
  min-width: 0;
}

.elevn-stand__rating-name {
  display: block;
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.elevn-stand__rating-select {
  min-width: 0;
  width: 92px;
  height: 34px;
  padding-left: 6px;
  padding-right: 6px;
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1;
}

.elevn-stand__ratings.is-disabled .elevn-stand__rating-select {
  cursor: default;
}

@media (max-width: 767px) {
  .elevn-stand__ratings {
    padding: 12px;
    border-radius: 10px;
  }

  .elevn-stand__rating-row {
    grid-template-columns: 40px minmax(0, 1fr) 90px;
    gap: 8px;
  }

  .elevn-stand__rating-photo {
    width: 40px;
    height: 40px;
  }

  .elevn-stand__rating-select {
    width: 90px;

    /*
     * Sngine's global .form-control adds .75rem vertical padding.
     * This select has a fixed 34px Stand height, so neutralize only
     * that vertical padding here. Keep the mobile 16px select font
     * contract intact to avoid reintroducing iOS focus zoom.
     */
    padding-top: 0;
    padding-bottom: 0;
  }
}


/* ELEVN MC-PROD-M5-A5 — supporter POTM result */

.elevn-stand__ratings.has-result {
  border-color: rgba(127, 127, 127, 0.36);
}

.elevn-stand__ratings.has-result .elevn-stand__ratings-status {
  display: none;
}

.elevn-stand__ratings.has-result .elevn-stand__ratings-list {
  max-height: none;
  overflow: visible;
}

.elevn-stand__potm-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 8px 0;
}

.elevn-stand__potm-row + .elevn-stand__potm-row {
  border-top: 1px solid rgba(127, 127, 127, 0.18);
}

.elevn-stand__potm-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(127, 127, 127, 0.12);
}

.elevn-stand__potm-identity {
  min-width: 0;
}

.elevn-stand__potm-name {
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.elevn-stand__potm-stats {
  min-width: 86px;
  text-align: right;
}

.elevn-stand__potm-average {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.elevn-stand__potm-votes {
  margin-top: 3px;
  font-size: 0.76rem;
  line-height: 1.25;
  opacity: 0.72;
}

.elevn-stand__ratings.is-no-quorum .elevn-stand__ratings-list {
  display: none;
}

@media (max-width: 767px) {
  .elevn-stand__potm-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 60px;
  }

  .elevn-stand__potm-photo {
    width: 48px;
    height: 48px;
  }

  .elevn-stand__potm-stats {
    min-width: 78px;
  }
}

/* ============================================================
   ELEVN — THE STAND UX V1
   Mobile/WebView-first match conversation surface.
   Presentation only: no Match Chat authority lives here.
   ============================================================ */

.elevn-stand {
  --elevn-stand-viewport-height: 100dvh;
  --elevn-stand-viewport-top: 0px;
  --elevn-stand-composer-height: 72px;

  position: fixed;
  top: var(--elevn-stand-viewport-top);
  right: 0;
  bottom: auto;
  left: 0;
  z-index: 1040;

  display: flex;
  flex-direction: column;

  width: 100%;
  height: 100vh;
  height: var(--elevn-stand-viewport-height);

  margin: 0;
  padding: env(safe-area-inset-top, 0px) 0 0;

  overflow: hidden;
  overscroll-behavior: none;

  background: #050505;
  color: #f5f5f5;

  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.elevn-stand__topbar {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 48px;
  padding: 8px 14px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 5, 5, 0.98);
}

.elevn-stand__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  min-width: 0;

  color: #f5f5f5;
  text-decoration: none;
}

.elevn-stand__back:hover,
.elevn-stand__back:focus {
  color: #ffffff;
  text-decoration: none;
}

.elevn-stand__back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 18px;

  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.elevn-stand__topbar-title {
  overflow: hidden;

  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.elevn-stand__match-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;

  min-width: 0;

  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.elevn-stand__live-dot {
  flex: 0 0 auto;

  width: 7px;
  height: 7px;

  border-radius: 50%;
  background: #e43b42;
  box-shadow: 0 0 0 3px rgba(228, 59, 66, 0.12);
}

.elevn-stand__live-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.elevn-stand__minute {
  color: rgba(255, 255, 255, 0.9);
}

.elevn-stand__occupancy {
  overflow: hidden;

  max-width: 118px;

  color: rgba(255, 255, 255, 0.54);
  text-overflow: ellipsis;
}

.elevn-stand__scoreboard {
  flex: 0 0 auto;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;

  min-height: 66px;
  padding: 8px 14px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #090909;
}

.elevn-stand__score-team {
  display: flex;
  align-items: center;
  gap: 8px;

  min-width: 0;
}

.elevn-stand__score-team.is-away {
  flex-direction: row-reverse;
  text-align: right;
}

.elevn-stand__score-logo {
  flex: 0 0 auto;

  width: 34px;
  height: 34px;

  object-fit: contain;
}

.elevn-stand__score-name {
  overflow: hidden;

  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/*
 * ELEVN STAND — mobile team names.
 *
 * Short names remain naturally one line.
 * Long names may wrap to a maximum of two lines.
 * The grid, logos and central score geometry remain untouched.
 */
@media (max-width: 767px) {
  .elevn-stand__score-name {
    min-width: 0;
    flex: 1 1 auto;

    display: -webkit-box;

    white-space: normal;
    overflow-wrap: break-word;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

.elevn-stand__score-center {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;

  min-width: 64px;

  font-variant-numeric: tabular-nums;
}

.elevn-stand__score-value {
  font-size: 1.38rem;
  font-weight: 800;
  line-height: 1;
}

.elevn-stand__score-separator {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.86rem;
}

.elevn-stand__hero {
  display: none;
}

.elevn-stand__state {
  flex: 0 0 auto;

  margin: 0;
  padding: 14px;

  border: 0;
  border-radius: 0;
  background: #090909;
}

.elevn-stand.is-realtime .elevn-stand__state {
  display: none;
}

.elevn-stand__state-title {
  margin: 0 0 4px;

  color: #f5f5f5;
  font-size: 0.9rem;
  font-weight: 700;
}

.elevn-stand__state-text {
  margin: 0;

  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  line-height: 1.45;
}

.elevn-stand__realtime {
  position: relative;

  flex: 1 1 auto;
  min-height: 0;

  display: flex;
  flex-direction: column;

  padding: 0;

  border: 0;
  border-radius: 0;
  background: #050505;
}

.elevn-stand__realtime[hidden] {
  display: none !important;
}

.elevn-stand__livebar,
.elevn-stand__live-state {
  display: none;
}

.elevn-stand__ratings {
  flex: 0 0 auto;

  margin: 8px 12px 0;
  padding: 12px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;

  background: #0d0d0d;
}

.elevn-stand__messages {
  flex: 1 1 auto;

  display: flex;
  flex-direction: column;
  gap: 1px;

  min-height: 0;
  max-height: none;

  padding: 12px 12px 18px;

  overflow-x: hidden;
  overflow-y: auto;

  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;

  scroll-behavior: auto;
  scrollbar-width: thin;
}

.elevn-stand__message {
  align-self: stretch;

  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 9px;

  width: 100%;
  max-width: none;

  margin: 0;
  padding: 5px 0;

  border: 0;
  border-radius: 0;

  background: transparent;

  color: #f2f2f2;
  overflow-wrap: anywhere;
}

.elevn-stand__message.is-own {
  align-self: stretch;
  background: transparent;
}

.elevn-stand__message-avatar {
  grid-column: 1;
  grid-row: 1 / span 2;

  width: 34px;
  height: 34px;

  border-radius: 50%;

  object-fit: cover;
  background: #181818;
}

.elevn-stand__message-body {
  grid-column: 2;

  min-width: 0;
}

.elevn-stand__message-head {
  display: flex;
  align-items: baseline;
  gap: 6px;

  min-width: 0;
  margin-bottom: 1px;
}

.elevn-stand__message-author {
  overflow: hidden;

  max-width: 76%;

  color: #ffffff;
  font-size: 0.77rem;
  font-weight: 750;
  line-height: 1.25;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.elevn-stand__message.is-own .elevn-stand__message-author::after {
  content: " · You";

  color: rgba(255, 255, 255, 0.36);
  font-weight: 500;
}

.elevn-stand__message-time {
  flex: 0 0 auto;

  color: rgba(255, 255, 255, 0.34);
  font-size: 0.66rem;
  line-height: 1.2;
}

.elevn-stand__message-text {
  margin: 0;

  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  line-height: 1.4;

  white-space: pre-wrap;
  word-break: break-word;
}

.elevn-stand__message.is-deleted {
  opacity: 0.52;
  font-style: italic;
}

.elevn-stand__message.is-system {
  display: block;

  width: 100%;
  max-width: none;

  margin: 4px 0;
  padding: 0;

  background: transparent;

  opacity: 1;
  text-align: left;
  font-size: inherit;
}

.elevn-stand__system-text {
  padding: 5px 10px;

  color: rgba(255, 255, 255, 0.47);
  font-size: 0.73rem;
  line-height: 1.35;
  text-align: center;
}

/* Structured football cards inserted by elevn-stand.js */
.elevn-stand__event {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;

  width: min(100%, 420px);
  margin: 7px auto;
  padding: 10px 11px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;

  background: #0d0d0d;
}

.elevn-stand__event-photo {
  width: 40px;
  height: 40px;

  border-radius: 50%;

  object-fit: cover;
  background: #181818;
}

.elevn-stand__event-body {
  min-width: 0;
}

.elevn-stand__event-label {
  margin-bottom: 2px;

  color: rgba(255, 255, 255, 0.58);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.elevn-stand__event-player {
  overflow: hidden;

  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 750;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.elevn-stand__event-detail {
  margin-top: 1px;

  color: rgba(255, 255, 255, 0.47);
  font-size: 0.7rem;
}

.elevn-stand__event-minute {
  align-self: start;

  min-width: 34px;
  padding-top: 2px;

  color: rgba(255, 255, 255, 0.74);
  font-size: 0.75rem;
  font-weight: 750;
  text-align: right;
}

.elevn-stand__event.is-goal {
  border-left: 3px solid #2fb96b;
}

.elevn-stand__event.is-yellow-card {
  border-left: 3px solid #e4bf28;
}

.elevn-stand__event.is-red-card {
  border-left: 3px solid #db3e45;
}

.elevn-stand__event.is-substitution {
  border-left: 3px solid #4d92e6;
}

.elevn-stand__event.is-var-review {
  border-left: 3px solid #8f75d8;
}

.elevn-stand__event.is-var-confirmed {
  border-left: 3px solid #2fb96b;
}

.elevn-stand__event.is-var-disallowed {
  border-left: 3px solid #db3e45;
}

.elevn-stand__event.is-var-decision {
  border-left: 3px solid #b99aef;
  background: #111015;
}

.elevn-stand__event.is-yellow-card .elevn-stand__event-label::before,
.elevn-stand__event.is-red-card .elevn-stand__event-label::before {
  display: inline-block;
  width: 7px;
  height: 11px;
  margin-right: 6px;
  border-radius: 1px;
  content: "";
  vertical-align: -1px;
}

.elevn-stand__event.is-yellow-card .elevn-stand__event-label::before {
  background: #e4bf28;
}

.elevn-stand__event.is-red-card .elevn-stand__event-label::before {
  background: #db3e45;
}


/*
 * Durable fixture-status timeline markers.
 * Presentation only: no match authority lives here.
 */
.elevn-stand__phase {
  display: flex;
  align-items: center;
  width: min(100%, 420px);
  margin: 9px auto;
}

.elevn-stand__phase::before,
.elevn-stand__phase::after {
  flex: 1 1 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
  content: '';
}

.elevn-stand__phase-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 9px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: #0d0d0d;
}

.elevn-stand__phase-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.elevn-stand__phase-score {
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.elevn-stand__phase-score::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 6px 0 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  vertical-align: middle;
}

.elevn-stand__phase.is-terminal .elevn-stand__phase-inner {
  border-color: rgba(255, 255, 255, 0.16);
  background: #151515;
}

.elevn-stand__phase.is-terminal .elevn-stand__phase-label {
  color: #ffffff;
}


/*
 * ELEVN — The Stand rich Match Experience.
 *
 * Consumes durable lineups/statistics system-event payloads only.
 * No match authority lives in CSS/JS.
 */
.elevn-stand__experience {
  width: min(100%, 460px);
  margin: 7px auto;
  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;

  background: #0d0d0d;
  color: #f2f2f2;
  text-align: left;
}

.elevn-stand__experience-title {
  padding: 10px 12px 9px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.07);

  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.elevn-stand__experience-team-head {
  display: flex;
  align-items: center;
  gap: 7px;

  min-width: 0;
  padding: 9px 9px 8px;
}

.elevn-stand__experience-team-logo {
  flex: 0 0 auto;

  width: 30px;
  height: 30px;

  object-fit: contain;
}

.elevn-stand__experience-team-logo.is-compact {
  width: 24px;
  height: 24px;
}

.elevn-stand__experience-team-body {
  min-width: 0;
}

.elevn-stand__experience-team-name {
  overflow: hidden;

  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.2;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.elevn-stand__experience-team-meta {
  overflow: hidden;
  margin-top: 2px;

  color: rgba(255, 255, 255, 0.44);
  font-size: 0.64rem;
  line-height: 1.2;

  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Starting XI */
.elevn-stand__lineup-teams {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);
}

.elevn-stand__lineup-team {
  min-width: 0;
}

.elevn-stand__lineup-team + .elevn-stand__lineup-team {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.elevn-stand__lineup-list {
  padding: 0 8px 9px;
}

.elevn-stand__lineup-player {
  display: grid;
  grid-template-columns:
    22px
    minmax(0, 1fr)
    17px;
  align-items: center;
  gap: 4px;

  min-height: 23px;

  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.elevn-stand__lineup-number {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.65rem;
  font-weight: 700;
  text-align: right;
}

.elevn-stand__lineup-name {
  overflow: hidden;

  color: rgba(255, 255, 255, 0.88);
  font-size: 0.7rem;
  font-weight: 600;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.elevn-stand__lineup-position {
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.61rem;
  font-weight: 700;
  text-align: center;
}


/* Half-time / full-time statistics */
.elevn-stand__stats-head {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    82px
    minmax(0, 1fr);
  align-items: center;

  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.elevn-stand__stats-head-spacer {
  display: block;
}

.elevn-stand__stats-head
.elevn-stand__experience-team-head:last-child {
  flex-direction: row-reverse;
  text-align: right;
}

.elevn-stand__stats-table {
  padding: 4px 10px 8px;
}

.elevn-stand__stats-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    96px
    minmax(0, 1fr);
  align-items: center;

  min-height: 28px;

  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.elevn-stand__stats-row:first-child {
  border-top: 0;
}

.elevn-stand__stats-value {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.elevn-stand__stats-value.is-left {
  text-align: left;
}

.elevn-stand__stats-value.is-right {
  text-align: right;
}

.elevn-stand__stats-label {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.64rem;
  font-weight: 650;
  text-align: center;
}

@media (max-width: 420px) {
  .elevn-stand__experience {
    border-right-width: 0;
    border-left-width: 0;
    border-radius: 0;
  }

  .elevn-stand__experience-team-head {
    gap: 5px;
    padding-right: 7px;
    padding-left: 7px;
  }

  .elevn-stand__experience-team-logo {
    width: 26px;
    height: 26px;
  }

  .elevn-stand__experience-team-logo.is-compact {
    width: 22px;
    height: 22px;
  }

  .elevn-stand__experience-team-name {
    font-size: 0.7rem;
  }

  .elevn-stand__lineup-list {
    padding-right: 6px;
    padding-left: 6px;
  }

  .elevn-stand__lineup-player {
    grid-template-columns:
      19px
      minmax(0, 1fr)
      15px;
    gap: 3px;
  }

  .elevn-stand__lineup-name {
    font-size: 0.66rem;
  }

  .elevn-stand__stats-head {
    grid-template-columns:
      minmax(0, 1fr)
      66px
      minmax(0, 1fr);
  }

  .elevn-stand__stats-row {
    grid-template-columns:
      minmax(0, 1fr)
      84px
      minmax(0, 1fr);
  }

  .elevn-stand__stats-label {
    font-size: 0.61rem;
  }
}

.elevn-stand__new-messages {
  position: absolute;
  right: 50%;
  bottom: calc(
    var(--elevn-stand-composer-height)
    + env(safe-area-inset-bottom, 0px)
    + 10px
  );
  z-index: 4;

  transform: translateX(50%);

  display: inline-flex;
  align-items: center;
  gap: 6px;

  min-height: 32px;
  padding: 6px 11px;

  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;

  background: #171717;
  color: rgba(255, 255, 255, 0.9);

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);

  font-size: 0.72rem;
  font-weight: 700;
}

.elevn-stand__new-messages[hidden] {
  display: none !important;
}

.elevn-stand__composer {
  position: relative;
  bottom: auto;
  z-index: 3;

  flex: 0 0 auto;

  display: flex;
  align-items: flex-end;
  gap: 8px;

  width: 100%;
  margin: 0;

  padding:
    9px
    10px
    max(9px, env(safe-area-inset-bottom, 0px));

  border-top: 1px solid rgba(255, 255, 255, 0.07);

  background: #080808;
}

.elevn-stand__composer.is-disabled {
  opacity: 0.72;
}

.elevn-stand__composer-field {
  flex: 1 1 auto;

  display: flex;
  align-items: flex-end;

  min-width: 0;

  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;

  background: #151515;
}

.elevn-stand__input {
  flex: 1 1 auto;

  min-width: 0;
  min-height: 40px;
  max-height: 104px;

  margin: 0;
  padding: 10px 4px 9px 13px;

  overflow-y: auto;

  border: 0;
  outline: 0;
  border-radius: 18px;

  resize: none;

  background: transparent;
  color: #f3f3f3;

  font: inherit;
  font-size: 0.82rem;
  line-height: 1.35;

  box-shadow: none;
}

.elevn-stand__input:focus {
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
}

.elevn-stand__input::placeholder {
  color: rgba(255, 255, 255, 0.37);
}

.elevn-stand__emoji {
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 40px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: transparent;
  color: rgba(255, 255, 255, 0.56);

  font-size: 1.08rem;
}

.elevn-stand__emoji:disabled {
  opacity: 0.35;
}

.elevn-stand__send {
  flex: 0 0 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: #22a95c;
  color: #ffffff;

  box-shadow: none;
}

.elevn-stand__send:hover,
.elevn-stand__send:focus {
  background: #22a95c;
  color: #ffffff;
}

.elevn-stand__send:disabled {
  opacity: 0.38;
}

.elevn-stand__send svg {
  width: 19px;
  height: 19px;
}

@media (min-width: 768px) {
  .elevn-stand {
    right: auto;
    left: 50%;

    width: min(100%, 720px);

    transform: translateX(-50%);

    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 1px solid rgba(255, 255, 255, 0.07);

    box-shadow:
      0 0 0 100vmax rgba(0, 0, 0, 0.72),
      0 0 48px rgba(0, 0, 0, 0.48);
  }

  .elevn-stand__messages {
    max-height: none;
    padding-right: 18px;
    padding-left: 18px;
  }

  .elevn-stand__message {
    max-width: none;
  }

  .elevn-stand__event {
    width: min(100%, 460px);
  }
}

/*
 * ELEVN — The Stand active-room bootstrap.
 * Do not flash a stale server transition card while an already
 * active room is completing realtime admission.
 */
.elevn-stand.is-initial-live-boot .elevn-stand__state {
  display: none;
}


/* ============================================================
   ELEVN UX-STAND-ENTRY-P1-R2 — mobile crest entry intro
   Presentation only.
   No realtime, socket, admission or business authority.
   ============================================================ */

.elevn-stand__entry-intro {
  display: none;
}

@media (max-width: 767px) {
  .elevn-stand__entry-intro {
    position: absolute;
    z-index: 50;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #050505;

    pointer-events: none;

    animation:
      elevn-stand-entry-intro
      1400ms
      linear
      both;
  }

  .elevn-stand__entry-intro-crest {
    width: min(38vw, 150px);
    max-width: 150px;
    max-height: 150px;

    object-fit: contain;

    opacity: 1;

    /*
     * Keep the expansion transform-only.
     * A large animated drop-shadow forces extra raster/compositing
     * work on mobile Safari and can make the final zoom stutter.
     */
    transform:
      translate3d(0, 0, 0)
      scale(0.94);

    transform-origin: center;

    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    will-change: transform;

    animation:
      elevn-stand-entry-crest
      1400ms
      linear
      both;
  }
}

@keyframes elevn-stand-entry-intro {
  0%,
  92% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes elevn-stand-entry-crest {
  /*
   * Let the supporter actually see the club identity first,
   * then accelerate smoothly into the full-screen transition.
   */
  0%,
  34% {
    transform:
      translate3d(0, 0, 0)
      scale(0.94);
  }

  100% {
    transform:
      translate3d(0, 0, 0)
      scale(9);
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .elevn-stand__entry-intro {
    animation-duration: 180ms;
  }

  .elevn-stand__entry-intro-crest {
    opacity: 1;

    transform: none;

    animation: none;
  }
}


/* ELEVN STAND-UX-P5-A1 — kickoff time + compact occupancy */

.elevn-stand__occupancy {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  max-width: none;
  overflow: visible;

  white-space: nowrap;
  text-overflow: clip;
}

.elevn-stand__occupancy-icon {
  flex: 0 0 auto;

  width: 13px;
  height: 13px;

  fill: currentColor;
}

.elevn-stand__kickoff-time {
  color: rgba(255, 255, 255, 0.94);

  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;

  letter-spacing: 0.01em;
  white-space: nowrap;
}


/* ELEVN STAND-UX-P5-A2 — GOAL icon + realtime celebration */

.elevn-stand__event.is-goal .elevn-stand__event-label::before {
  display: inline-block;

  margin-right: 6px;

  content: "⚽";

  font-size: 0.82rem;
  line-height: 1;

  vertical-align: -1px;
}

.elevn-stand__event.is-goal.is-celebrating {
  transform-origin: center;

  animation:
    elevn-stand-goal-celebrate
    900ms
    cubic-bezier(0.2, 0.8, 0.2, 1)
    both;
}

.elevn-stand__event.is-goal.is-celebrating
.elevn-stand__event-label::before {
  animation:
    elevn-stand-goal-ball-pop
    900ms
    cubic-bezier(0.2, 0.8, 0.2, 1)
    both;
}

@keyframes elevn-stand-goal-celebrate {
  0% {
    transform: scale(0.985);

    background:
      rgba(47, 185, 107, 0.04);

    box-shadow:
      0 0 0 0
      rgba(47, 185, 107, 0);
  }

  28% {
    transform: scale(1.012);

    background:
      rgba(47, 185, 107, 0.14);

    box-shadow:
      0 0 0 3px
      rgba(47, 185, 107, 0.10),
      0 0 22px
      rgba(47, 185, 107, 0.16);
  }

  58% {
    transform: scale(1);

    background:
      rgba(47, 185, 107, 0.08);

    box-shadow:
      0 0 0 1px
      rgba(47, 185, 107, 0.05),
      0 0 12px
      rgba(47, 185, 107, 0.08);
  }

  100% {
    transform: scale(1);

    background: transparent;

    box-shadow:
      0 0 0 0
      rgba(47, 185, 107, 0);
  }
}

@keyframes elevn-stand-goal-ball-pop {
  0% {
    transform:
      scale(0.72)
      rotate(-12deg);

    opacity: 0.65;
  }

  34% {
    transform:
      scale(1.28)
      rotate(8deg);

    opacity: 1;
  }

  62% {
    transform:
      scale(0.96)
      rotate(-2deg);

    opacity: 1;
  }

  100% {
    transform:
      scale(1)
      rotate(0deg);

    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .elevn-stand__event.is-goal.is-celebrating,
  .elevn-stand__event.is-goal.is-celebrating
  .elevn-stand__event-label::before {
    animation: none !important;
  }
}


/* ELEVN STAND-UX-P5-A3 — compact POTM + realtime reveal */

/*
 * Result compact mode differs from voting compact mode:
 * the winner identity remains the useful summary.
 */
.elevn-stand__ratings.has-result.is-collapsed
.elevn-stand__ratings-head {
  margin-bottom: 7px;
}

.elevn-stand__ratings.has-result.is-collapsed
.elevn-stand__ratings-list {
  display: block;
}

.elevn-stand__ratings.has-result.is-collapsed
.elevn-stand__potm-row {
  grid-template-columns:
    42px
    minmax(0, 1fr)
    auto;

  gap: 9px;

  min-height: 48px;
  padding: 3px 0;
}

.elevn-stand__ratings.has-result.is-collapsed
.elevn-stand__potm-photo {
  width: 42px;
  height: 42px;
}

.elevn-stand__ratings.has-result.is-collapsed
.elevn-stand__potm-stats {
  min-width: 58px;
}

.elevn-stand__ratings.has-result.is-collapsed
.elevn-stand__potm-average {
  font-size: 0.94rem;
}

.elevn-stand__ratings.has-result.is-collapsed
.elevn-stand__potm-votes {
  display: none;
}

/*
 * No-quorum has no winner identity to preserve.
 */
.elevn-stand__ratings.has-result.is-no-quorum.is-collapsed
.elevn-stand__ratings-list {
  display: none;
}


/*
 * Realtime POTM reveal.
 *
 * Contained CSS burst: no extra dependency on ONE or Football Identity
 * celebration DOM, no canvas and no layout participation.
 */
.elevn-stand__ratings.has-result.is-revealing {
  position: relative;

  animation:
    elevn-stand-potm-reveal
    1100ms
    cubic-bezier(0.2, 0.8, 0.2, 1)
    both;
}

.elevn-stand__ratings.has-result.is-revealing::before {
  position: absolute;
  inset: 2px;

  pointer-events: none;

  border-radius: inherit;

  background:
    radial-gradient(
      circle at 11% 28%,
      rgba(255, 214, 92, 0.95) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 24% 78%,
      rgba(255, 255, 255, 0.88) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 38% 18%,
      rgba(47, 185, 107, 0.92) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 62% 82%,
      rgba(255, 214, 92, 0.90) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 76% 22%,
      rgba(255, 255, 255, 0.84) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 91% 65%,
      rgba(47, 185, 107, 0.88) 0 2px,
      transparent 3px
    );

  content: "";

  opacity: 0;

  transform: scale(0.84);

  animation:
    elevn-stand-potm-confetti
    1100ms
    ease-out
    both;
}

.elevn-stand__ratings.has-result.is-revealing::after {
  position: absolute;
  inset: 0;

  pointer-events: none;

  border-radius: inherit;

  content: "";

  opacity: 0;

  box-shadow:
    inset 0 0 0 1px
      rgba(255, 214, 92, 0.30),
    0 0 26px
      rgba(255, 214, 92, 0.14);

  animation:
    elevn-stand-potm-glow
    1100ms
    ease-out
    both;
}

@keyframes elevn-stand-potm-reveal {
  0% {
    transform: scale(0.985);
  }

  28% {
    transform: scale(1.01);
  }

  58% {
    transform: scale(1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes elevn-stand-potm-confetti {
  0% {
    opacity: 0;
    transform: scale(0.84);
  }

  24% {
    opacity: 1;
  }

  68% {
    opacity: 0.72;
    transform: scale(1.035);
  }

  100% {
    opacity: 0;
    transform: scale(1.06);
  }
}

@keyframes elevn-stand-potm-glow {
  0% {
    opacity: 0;
  }

  28% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .elevn-stand__ratings.has-result.is-revealing,
  .elevn-stand__ratings.has-result.is-revealing::before,
  .elevn-stand__ratings.has-result.is-revealing::after {
    animation: none !important;
  }

  .elevn-stand__ratings.has-result.is-revealing::before,
  .elevn-stand__ratings.has-result.is-revealing::after {
    opacity: 0 !important;
  }
}


/* ELEVN STAND-UX-P5-A3-H1-M2-R4 — Fan MVP royal club card */

/*
 * Presentation only.
 *
 * Layout:
 * portrait | FAN MVP + player name | rating
 *
 * The Fan Zone crest is decorative background identity.
 */
.elevn-stand__ratings.has-result.is-potm-winner {
  position: relative;

  padding: 10px 12px;

  overflow: hidden;

  border-color:
    rgba(216, 176, 64, 0.62);

  background:
    #10110f;

  box-shadow:
    inset 0 0 0 1px
      rgba(216, 176, 64, 0.08),
    0 8px 24px
      rgba(0, 0, 0, 0.18);
}

.elevn-stand__ratings.has-result.is-potm-winner
.elevn-stand__ratings-head,
.elevn-stand__ratings.has-result.is-potm-winner
.elevn-stand__ratings-status {
  display: none;
}

.elevn-stand__ratings.has-result.is-potm-winner
.elevn-stand__ratings-list {
  display: block;

  margin: 0;
}

.elevn-stand__ratings.has-result.is-potm-winner
.elevn-stand__potm-row {
  position: relative;

  isolation: isolate;

  display: grid;

  grid-template-columns:
    56px
    minmax(0, 1fr)
    auto;

  gap: 11px;

  align-items: center;

  min-height: 64px;

  padding: 3px 0;
}

/*
 * Large filtered Fan Zone crest behind the award.
 *
 * Row pseudo-element is used deliberately so the panel's
 * ::before / ::after remain reserved for the finite realtime
 * POTM reveal animation.
 */
.elevn-stand__ratings.has-result.is-potm-winner
.elevn-stand__potm-row::before {
  content: "";

  position: absolute;

  z-index: 0;

  top: 50%;
  left: 53%;

  width: 144px;
  height: 144px;

  background-image:
    var(--elevn-potm-club-mark);

  background-repeat:
    no-repeat;

  background-position:
    center;

  background-size:
    contain;

  opacity: 0.085;

  filter:
    saturate(0.72)
    brightness(0.68);

  pointer-events: none;

  transform:
    translate(-50%, -50%)
    scale(1.08);
}

.elevn-stand__ratings.has-result.is-potm-winner
.elevn-stand__potm-photo,
.elevn-stand__ratings.has-result.is-potm-winner
.elevn-stand__potm-identity,
.elevn-stand__ratings.has-result.is-potm-winner
.elevn-stand__potm-stats {
  position: relative;

  z-index: 1;
}

.elevn-stand__ratings.has-result.is-potm-winner
.elevn-stand__potm-photo {
  width: 56px;
  height: 56px;

  border:
    2px solid
    rgba(216, 176, 64, 0.66);

  box-shadow:
    0 0 0 3px
      rgba(216, 176, 64, 0.09);
}

.elevn-stand__ratings.has-result.is-potm-winner
.elevn-stand__potm-identity {
  display: flex;

  flex-direction: column;

  justify-content: center;

  min-width: 0;
}

.elevn-stand__ratings.has-result.is-potm-winner
.elevn-stand__potm-title {
  display: flex;

  align-items: center;

  gap: 6px;

  margin-bottom: 4px;

  color:
    rgba(225, 190, 82, 0.96);

  font-size: 0.76rem;
  font-weight: 800;

  line-height: 1;

  letter-spacing: 0.13em;

  text-transform: uppercase;
}

.elevn-stand__ratings.has-result.is-potm-winner
.elevn-stand__potm-title::before {
  content: "♛";

  flex: 0 0 auto;

  display: inline-block;

  color:
    rgba(225, 190, 82, 1);

  font-size: 1.10rem;

  line-height: 1;

  transform: translateY(-1px);
}

.elevn-stand__ratings.has-result.is-potm-winner
.elevn-stand__potm-name {
  overflow: hidden;

  color: #fff;

  font-size: 1.12rem;
  font-weight: 800;

  line-height: 1.18;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.elevn-stand__ratings.has-result.is-potm-winner
.elevn-stand__potm-stats {
  display: flex;

  align-items: center;

  justify-content: flex-end;

  min-width: 66px;

  padding-left: 11px;

  border-left:
    1px solid
    rgba(216, 176, 64, 0.25);

  text-align: right;
}

.elevn-stand__ratings.has-result.is-potm-winner
.elevn-stand__potm-average {
  color: #fff;

  font-size: 1.58rem;
  font-weight: 900;

  line-height: 1;

  letter-spacing: -0.025em;
}

.elevn-stand__ratings.has-result.is-potm-winner
.elevn-stand__potm-votes {
  display: none;
}

@media (max-width: 767px) {
  .elevn-stand__ratings.has-result.is-potm-winner {
    padding: 8px 10px;
  }

  .elevn-stand__ratings.has-result.is-potm-winner
  .elevn-stand__potm-row {
    grid-template-columns:
      50px
      minmax(0, 1fr)
      auto;

    gap: 9px;

    min-height: 58px;

    padding: 2px 0;
  }

  .elevn-stand__ratings.has-result.is-potm-winner
  .elevn-stand__potm-row::before {
    left: 54%;

    width: 120px;
    height: 120px;

    opacity: 0.08;
  }

  .elevn-stand__ratings.has-result.is-potm-winner
  .elevn-stand__potm-photo {
    width: 50px;
    height: 50px;
  }

  .elevn-stand__ratings.has-result.is-potm-winner
  .elevn-stand__potm-title {
    gap: 5px;

    margin-bottom: 3px;

    font-size: 0.73rem;

    letter-spacing: 0.10em;
  }

  .elevn-stand__ratings.has-result.is-potm-winner
  .elevn-stand__potm-name {
    font-size: 1rem;
  }

  .elevn-stand__ratings.has-result.is-potm-winner
  .elevn-stand__potm-stats {
    min-width: 60px;

    padding-left: 9px;
  }

  .elevn-stand__ratings.has-result.is-potm-winner
  .elevn-stand__potm-average {
    font-size: 1.45rem;
  }
}


/* ELEVN STAND-UX-P5-A4-H1 — Fan Zone club watermark */

/*
 * Decorative Fan Zone club identity only.
 *
 * isolation creates a local stacking context:
 * the negative-z watermark remains above the realtime background
 * while all ordinary Stand content paints in front of it.
 */
.elevn-stand__realtime {
  position: relative;
  isolation: isolate;
}

.elevn-stand__club-watermark {
  position: absolute;
  z-index: -1;

  top: 50%;
  left: 50%;

  width: min(58vw, 220px);
  max-width: 220px;
  max-height: 220px;

  object-fit: contain;

  opacity: 0.045;

  transform:
    translate(-50%, -50%);

  pointer-events: none;
  user-select: none;

  -webkit-user-drag: none;
}

/* =========================================================
 * FZG-UX-H1-M1
 * Mobile-first minimal Fan Zone identity header
 * ========================================================= */

.elevn-fz-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 5px;
}

.elevn-fz-meta
.elevn-fz-kicker,
.elevn-fz-meta
.elevn-fz-members {
  margin-top: 0;
}

.elevn-fz-meta-separator {
  flex: 0 0 auto;
  color: var(--fz-muted);
  font-size: 12px;
  line-height: 1;
}

.elevn-fz-about {
  width: 280px;
  max-width: calc(100vw - 32px);
  padding: 8px 14px 12px;
  white-space: normal;
}

.elevn-fz-about__title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: var(--body-color);
  font-size: 12px;
  font-weight: 800;
}

.elevn-fz-about__text {
  color: var(--fz-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}

.elevn-fz-about-divider {
  margin-top: 5px;
  margin-bottom: 4px;
}

@media (max-width: 767px) {

  .elevn-fz-identity {
    display: grid;

    grid-template-columns:
      56px
      minmax(0, 1fr)
      auto;

    align-items: center;
    gap: 10px;

    margin-left: 4px;
    margin-right: 4px;

    padding: 10px 11px;

    border-radius: 14px;
  }

  .elevn-fz-logo {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    padding: 5px;
    border-radius: 13px;
  }

  .elevn-fz-identity-copy {
    min-width: 0;
  }

  .elevn-fz-title {
    font-size: 18px;
    line-height: 1.12;
  }

  .elevn-fz-meta {
    gap: 5px;
    margin-top: 5px;
    overflow: hidden;
    white-space: nowrap;
  }

  .elevn-fz-kicker {
    flex: 0 0 auto;
    font-size: 10px;
  }

  .elevn-fz-members {
    overflow: hidden;
    margin-top: 0;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .elevn-fz-meta-separator {
    font-size: 11px;
  }

  .elevn-fz-actions {
    gap: 6px;
  }

  .elevn-fz-actions
  .btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;

    padding: 0 !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50% !important;
  }

  .elevn-fz-actions
  .btn:not(.elevn-fz-more) {
    padding-left: 0;
    padding-right: 0;
  }

  .elevn-fz-more {
    width: 44px;
    height: 44px;
    min-height: 44px !important;
  }

  .elevn-fz-nav {
    margin-top: 8px;
    margin-left: 4px;
    margin-right: 4px;
    margin-bottom: 10px;

    padding: 4px;

    border-radius: 14px;
  }

  .elevn-fz-nav__item {
    min-height: 40px;
    border-radius: 10px;
    font-size: 11px;
  }

  .elevn-fz-about {
    width: 260px;
    max-width: calc(100vw - 24px);
  }
}

/* =========================================================
 * FZG-UX-H1-M2
 * Icon-only membership actions + stronger dark-menu readability
 * ========================================================= */

@media (max-width: 767px) {
  .elevn-fz-actions .btn:not(.elevn-fz-more) {
    font-size: 0 !important;
    line-height: 1 !important;
    gap: 0 !important;
  }

  .elevn-fz-actions .btn:not(.elevn-fz-more) i,
  .elevn-fz-actions .btn:not(.elevn-fz-more) svg,
  .elevn-fz-actions .btn:not(.elevn-fz-more) [class*="fa-"],
  .elevn-fz-actions .btn:not(.elevn-fz-more) [class*="icon"] {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    vertical-align: middle;
  }
}

.elevn-fz-about__title {
  color: rgba(255, 255, 255, 0.96);
}

.elevn-fz-about__text {
  color: rgba(255, 255, 255, 0.82);
}

.elevn-fz-about-divider {
  border-color: rgba(255, 255, 255, 0.08);
}

/* =========================================================
 * ELEVN-FZG-MEMBERSHIP-UX-M1
 * Calm Fan Zone membership state
 *
 * Join remains an action.
 * Member is a non-destructive state.
 * Leave exists only in the More menu.
 * ========================================================= */

.elevn-fz-member-state,
.elevn-fz-member-state:disabled {
  opacity: 1 !important;

  color: #d7dde7 !important;
  border-color: rgba(148, 163, 184, 0.26) !important;
  background: rgba(148, 163, 184, 0.10) !important;

  box-shadow: none !important;

  cursor: default !important;
}

.elevn-fz-member-state .fa-check {
  color: #34c98f !important;
}

body:not(.night-mode)
.elevn-fz-member-state,
body:not(.night-mode)
.elevn-fz-member-state:disabled {
  color: #475569 !important;
  border-color: rgba(71, 85, 105, 0.20) !important;
  background: rgba(148, 163, 184, 0.12) !important;
}

.elevn-fz-leave-divider[hidden],
.elevn-fz-leave-menu[hidden] {
  display: none !important;
}

.elevn-fz-leave-menu .action {
  color: #e65a67;
}

.elevn-fz-leave-menu .main-icon {
  color: inherit;
}

@media (max-width: 767px) {

  .elevn-fz-actions
  .js_join-group
  .fa-user-plus::before {
    content: "\f00c";
  }

  .elevn-fz-actions
  .elevn-fz-member-state {
    width: 44px;
    height: 44px;

    min-width: 44px;
    min-height: 44px;

    padding: 0 !important;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 50% !important;
  }

}

/* =========================================================
 * FZG-UX-CREATE-ONE-ICON-M1
 * Canonical ONE identity in Fan Zone Create ONE action
 * ========================================================= */

.elevn-fz-one-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 18px;
  height: 18px;

  margin-right: 7px;

  color: #0d8cff;

  flex: 0 0 18px;
}

.elevn-fz-one-icon svg {
  display: block;

  width: 18px !important;
  height: 18px !important;
}

.elevn-fz-one-icon svg path {
  fill: currentColor !important;
}

/* =========================================================
 * FZG-UX-H2-M1
 * Mobile/WebView Fan Zone polish
 *
 * - safe symmetric nav inset
 * - floating transparent team crest
 * ========================================================= */

@media (max-width: 767px) {

  /*
   * Guarantee real breathing room from both viewport edges.
   * Explicit width prevents margin + containing-block geometry
   * from visually swallowing either rounded side.
   */
  .elevn-fz-nav {
    width: calc(100% - 8px);
    max-width: calc(100% - 8px);

    margin-left: auto;
    margin-right: auto;

    box-sizing: border-box;
  }

  /*
   * FZG-UX-H2-M1-H1
   * Center the navigation as one unit so ZONE and STAND
   * receive the exact same physical viewport breathing room.
   */

  /*
   * The crest is identity, not a web-card thumbnail.
   * Remove the artificial white tile and let the badge float.
   */
  .elevn-fz-identity {
    grid-template-columns:
      64px
      minmax(0, 1fr)
      auto;
  }

  .elevn-fz-logo {
    width: 64px;
    height: 64px;
    flex-basis: 64px;

    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;

    object-fit: contain;

    filter:
      drop-shadow(
        0 1px 1px
        rgba(255, 255, 255, 0.12)
      )
      drop-shadow(
        0 3px 6px
        rgba(0, 0, 0, 0.34)
      );
  }

}

/* =========================================================
 * FZG-MOBILE-SHELL-M1
 * Mobile Fan Zone root-shell geometry
 *
 * Runtime proof on 390px viewport:
 *
 *   .container-fluid.elevn-fz = 390px
 *   direct child .row         = 414px
 *   margin-left               = -12px
 *   margin-right              = -12px
 *
 * Fan Zone is full-bleed and its container has 0 horizontal
 * padding, so Bootstrap's negative row gutters have nothing
 * to compensate.
 *
 * Neutralize ONLY the direct root row on mobile.
 * ========================================================= */

@media (max-width: 767px) {

  .container-fluid.sg-offcanvas.elevn-fz
  > .row {
    width: 100%;
    max-width: 100%;

    margin-left: 0;
    margin-right: 0;
  }

}
