.page-community .egg-community-page {
  padding-bottom: 4rem;
}

.page-community .eg-community__intro {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.eg-community {
  padding: clamp(2rem, 5vw, 3.5rem) 0 2rem;
}

.eg-community__intro {
  max-width: 42rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.eg-community__eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--egg-purple-600, #6b46c1);
  font-weight: 600;
}

.eg-community__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
}

.eg-community__lead {
  margin: 0;
  color: var(--text-muted, #4b5563);
  font-size: 1.05rem;
  line-height: 1.55;
}

.eg-community__lead a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(91, 33, 182, 0.35);
  text-underline-offset: 0.15em;
}

.eg-community__lead a:hover {
  color: #5b21b6;
}

.eg-community__status,
.eg-community__empty,
.eg-community__end {
  margin: 0;
  color: var(--text-muted, #4b5563);
  text-align: center;
}

.eg-community__status {
  margin: 0 0 1rem;
  text-align: left;
  color: #b45309;
  font-size: 0.92rem;
}

.eg-community__status[hidden] {
  display: none;
}

.eg-community__end {
  margin-top: 1.5rem;
  font-size: 0.92rem;
}

.eg-community__grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .eg-community__grid {
    grid-template-columns: 1fr;
  }
}

.eg-community__grid.is-initial-loading {
  pointer-events: none;
}

@keyframes eg-community-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes eg-community-card-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes eg-community-loader-dot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.eg-community-card--enter {
  animation: eg-community-card-enter 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eg-community-card--skeleton {
  pointer-events: none;
}

.eg-community-skeleton {
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(237, 233, 254, 0.55) 0%,
    rgba(221, 214, 254, 0.95) 45%,
    rgba(237, 233, 254, 0.55) 100%
  );
  background-size: 200% 100%;
  animation: eg-community-shimmer 1.35s ease-in-out infinite;
}

.eg-community-skeleton--egg {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.eg-community-skeleton--username {
  width: 7.5rem;
  height: 1rem;
}

.eg-community-skeleton--title {
  width: min(18rem, 72%);
  height: 1.35rem;
  margin-bottom: 0.65rem;
}

.eg-community-skeleton--line {
  width: 100%;
  height: 0.82rem;
  margin-bottom: 0.45rem;
}

.eg-community-skeleton--line-short {
  width: 62%;
}

.eg-community-skeleton--media {
  width: 100%;
  min-height: 200px;
  margin-top: 0.35rem;
  border-radius: 14px;
}

.eg-community__loader {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding: 0.35rem 0 0.5rem;
}

.eg-community__loader[hidden] {
  display: none;
}

.eg-community__loader-track {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.eg-community__loader-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--egg-purple-600, #6b46c1);
  animation: eg-community-loader-dot 1s ease-in-out infinite;
}

.eg-community__loader-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.eg-community__loader-dot:nth-child(3) {
  animation-delay: 0.3s;
}

.eg-community__loader-text {
  margin: 0;
  color: var(--text-muted, #6b7280);
  font-size: 0.86rem;
}

.eg-community__sentinel {
  width: 100%;
  height: 1px;
  margin-top: 0.5rem;
}

.eg-community-card {
  border-radius: 18px;
  border: 1px solid rgba(107, 70, 193, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(49, 31, 92, 0.07);
  overflow: hidden;
}

.eg-community-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.35rem;
}

.eg-community-egg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: visible;
}

.eg-community-egg__canvas {
  display: block;
  width: auto;
  height: 5.625rem;
  max-width: 6.75rem;
}

.eg-community-egg--initial {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, #f3ecff 0%, #e9ddff 100%);
  box-shadow: 0 4px 10px rgba(49, 31, 92, 0.1);
}

.eg-community-egg__initial {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  color: #553c9a;
}

.eg-community-username {
  font-weight: 700;
  color: var(--egg-purple-900, #2d1b4e);
  font-size: 0.98rem;
}

.eg-community-card__body {
  padding: 0.35rem 1.1rem 1.1rem;
}

.eg-community-card__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display, "Bakbak One", sans-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.15;
  color: var(--egg-purple-900, #2d1b4e);
}

.eg-community-card__description {
  margin: 0 0 0.85rem;
  color: var(--text-body, #374151);
  font-size: 0.96rem;
  line-height: 1.55;
}

.eg-community-card__description p {
  margin: 0 0 0.55rem;
}

.eg-community-card__description p:last-child {
  margin-bottom: 0;
}

.eg-community-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.eg-community-tag {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f1f3f4;
  color: #495057;
  font-size: 0.72rem;
  font-weight: 600;
}

.eg-community-card__media {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #ece6ff;
  cursor: zoom-in;
  text-align: left;
  min-height: 180px;
}

.eg-community-card__media--inline {
  cursor: default;
  min-height: 0;
  background: #111;
}

.eg-community-card__media--audio {
  background: linear-gradient(180deg, #f8f4ff 0%, #ede8ff 100%);
  padding: 1rem 1rem 0.85rem;
}

.eg-community-card__media--video {
  background: #111;
}

.eg-community-card__media--pixel-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: #14141f;
  cursor: zoom-in;
}

.eg-community-pixel-art-frame {
  flex-shrink: 0;
  line-height: 0;
  overflow: hidden;
}

.eg-community-pixel-art-frame img,
.eg-community-card__media--pixel-art img.eg-community-pixel-art-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
  background: transparent;
}

.eg-community-card__media.is-media-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(237, 233, 254, 0.4) 0%,
    rgba(221, 214, 254, 0.85) 50%,
    rgba(237, 233, 254, 0.4) 100%
  );
  background-size: 200% 100%;
  animation: eg-community-shimmer 1.35s ease-in-out infinite;
  pointer-events: none;
}

.eg-community-card__media.is-media-loading > img,
.eg-community-card__media.is-media-loading > video {
  opacity: 0;
}

.eg-community-card__media > img.is-loaded,
.eg-community-card__media > video.is-loaded,
.eg-community-pixel-art-frame img.is-loaded {
  opacity: 1;
  transition: opacity 0.35s ease;
}

.eg-community-card__media:focus-visible {
  outline: 2px solid var(--egg-purple-600, #6b46c1);
  outline-offset: 2px;
}

.eg-community-card__media > img,
.eg-community-card__media > video {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #111;
}

.eg-community-card__stream {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  border: 0;
  background: #000;
}

.eg-community-card__video {
  width: 100%;
  max-height: 420px;
  background: #000;
}

.eg-community-audio {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.eg-community-audio__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.eg-community-audio__icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.eg-community-audio__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--egg-purple-900, #2d1b4e);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eg-community-audio__element {
  width: 100%;
  height: 2.75rem;
  border-radius: 999px;
  accent-color: var(--egg-purple-600, #6b46c1);
}

.eg-community-card__media img[data-pixel-art="true"] {
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
}

.eg-community-card__media-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 1rem;
  color: var(--text-muted, #6b7280);
  font-size: 0.92rem;
}

.eg-community-card__media-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 0;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.eg-community-card__media-badge:hover {
  background: rgba(17, 24, 39, 0.88);
}

.eg-community-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  color: var(--text-muted, #6b7280);
  font-size: 0.82rem;
}

.eg-community-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.eg-community-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 30, 0.78);
}

.eg-community-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  width: min(1100px, calc(100vw - 1.5rem));
  height: min(86vh, 900px);
  margin: 7vh auto 0;
  padding: 0.5rem;
}

.eg-community-lightbox__stage {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.55);
}

.eg-community-lightbox__stage img,
.eg-community-lightbox__stage video,
.eg-community-lightbox__stage iframe,
.eg-community-lightbox__stage audio {
  max-width: 100%;
  max-height: 100%;
}

.eg-community-lightbox__stage--pixel-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.eg-community-lightbox__stage--pixel-art .eg-community-pixel-art-frame {
  flex-shrink: 0;
  line-height: 0;
}

.eg-community-lightbox__stage--pixel-art .eg-community-pixel-art-frame img,
.eg-community-lightbox__stage img.eg-community-pixel-art-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
}

.eg-community-lightbox__stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.eg-community-lightbox__fallback {
  color: #fff;
  text-align: center;
  padding: 1rem;
}

.eg-community-lightbox__fallback a {
  color: #fff;
}

.eg-community-lightbox__close,
.eg-community-lightbox__nav {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
}

.eg-community-lightbox__close {
  position: absolute;
  top: -2.4rem;
  right: 0;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.4rem;
  line-height: 1;
}

.eg-community-lightbox__nav {
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.6rem;
  line-height: 1;
}

.eg-community-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.eg-community-lightbox__counter {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}

@media (max-width: 720px) {
  .eg-community-lightbox__dialog {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;
    height: min(88vh, 900px);
  }

  .eg-community-lightbox__stage {
    grid-column: 1;
    grid-row: 2;
  }

  .eg-community-lightbox__nav {
    grid-row: 3;
  }

  .eg-community-lightbox__nav--prev,
  .eg-community-lightbox__nav--next {
    justify-self: center;
  }

  .eg-community-lightbox__counter {
    grid-row: 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eg-community-card--enter,
  .eg-community-skeleton,
  .eg-community-card__media.is-media-loading::before,
  .eg-community__loader-dot {
    animation: none;
  }

  .eg-community-card--enter {
    opacity: 1;
    transform: none;
  }
}

/* Egg Discussions (/learn/discussions/) -- community card styling, 3-up grid */
.page-learn-discussions .eg-discussions {
  background:
    radial-gradient(circle at 12% 8%, rgba(167, 139, 250, 0.14), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(236, 72, 153, 0.08), transparent 38%),
    linear-gradient(180deg, #f7f3ff 0%, #f3ecff 100%);
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 2.5rem;
}

.page-learn-discussions .eg-discussions .shell {
  position: relative;
}

.eg-discussions__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .eg-discussions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .eg-discussions__grid {
    grid-template-columns: 1fr;
  }
}

.eg-discussions__grid > li {
  display: flex;
  min-width: 0;
}

.eg-discussions .eg-community-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: linear-gradient(165deg, #fff 0%, #f8f4ff 52%, #f0e9ff 100%);
  border: 1px solid rgba(91, 56, 168, 0.22);
  box-shadow:
    0 14px 34px rgba(49, 31, 92, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.eg-discussions .eg-community-card__body {
  padding: 0.85rem 0.75rem 1rem;
}

.eg-discussions .eg-community-card__title {
  margin-top: 0;
  color: #221334;
}

.eg-discussions .eg-community-card__description {
  color: #3f3654;
  margin-top: 0;
  margin-bottom: 0;
}

.eg-discussions__about {
  margin-top: 0.15rem;
}

.eg-discussions__about-heading {
  margin: 0 0 0.55rem;
  color: #221334;
  font-family: var(--font-display, "Valorant", "DM Sans", system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.eg-discussions .eg-community-card__description a {
  color: var(--egg-purple-600, #6b46c1);
  text-decoration: underline;
  word-break: break-word;
}

.eg-discussions__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 180px;
  border-radius: 14px;
  overflow: hidden;
  background: #ece6ff;
}

.eg-discussions__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eg-discussions__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 4.25rem;
  height: 4.25rem;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(45, 27, 78, 0.78);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  z-index: 2;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.28),
    0 0 22px rgba(255, 255, 255, 0.42),
    0 10px 28px rgba(49, 31, 92, 0.28);
}

.eg-discussions__play:hover,
.eg-discussions__play:focus-visible {
  transform: scale(1.05);
  background: rgba(107, 70, 193, 0.92);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.36),
    0 0 28px rgba(255, 255, 255, 0.55),
    0 12px 32px rgba(107, 70, 193, 0.35);
}

.eg-discussions__play[aria-pressed="true"] {
  background: rgba(107, 70, 193, 0.92);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.36),
    0 0 28px rgba(255, 255, 255, 0.5),
    0 12px 32px rgba(107, 70, 193, 0.35);
}

.eg-discussions__play-icon {
  width: 0;
  height: 0;
  border-top: 0.85rem solid transparent;
  border-bottom: 0.85rem solid transparent;
  border-left: 1.35rem solid #fff;
  margin-left: 0.25rem;
}

.eg-discussions__audio {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  width: calc(100% - 1.5rem);
  z-index: 3;
}

.eg-discussions__card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  color: var(--text-muted, #4b5563);
  font-size: 0.82rem;
  font-weight: 600;
}

.eg-discussions__card-date,
.eg-discussions__card-duration {
  color: inherit;
}

.eg-discussions__card-meta-sep {
  color: rgba(75, 85, 99, 0.55);
  font-weight: 500;
}

.eg-discussions__card-date {
  margin: 0;
  color: var(--text-muted, #4b5563);
  font-size: 0.82rem;
  font-weight: 600;
}

.eg-discussions__hosts {
  margin: 0 0 0.35rem;
  color: var(--egg-purple-700, #553c9a);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.eg-discussions .eg-community-card__description a:hover,
.eg-discussions .eg-community-card__description a:focus-visible {
  color: var(--egg-purple-800, #44337a);
}

.eg-discussions__read-more {
  display: block;
  width: fit-content;
  margin: calc(0.35rem + 5px) auto 0;
  padding: 0;
  border: 0;
  background: none;
  color: #5c5670;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(92, 86, 112, 0.38);
  cursor: pointer;
  text-align: center;
}

.eg-discussions__read-more:hover,
.eg-discussions__read-more:focus-visible {
  color: #3f3950;
  border-bottom-color: rgba(63, 57, 80, 0.62);
}

.eg-discussions__footer-note {
  margin-top: 2rem;
  color: var(--text-muted, #4b5563);
  font-size: 0.92rem;
}

.eg-discussions__footer-note a {
  color: var(--egg-purple-700, #553c9a);
}

.eg-discussions .eg-community-card.is-playing .eg-discussions__play {
  opacity: 0;
  pointer-events: none;
}

.eg-discussions__responses {
  margin: 0.85rem -0.45rem 0.75rem;
  width: calc(100% + 0.9rem);
}

.eg-discussions__responses-label {
  margin: 0 0 0.4rem;
  color: var(--text-muted, #4b5563);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.eg-discussions__response-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem;
  width: 100%;
}

.eg-discussions__response-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0.28rem 0.12rem;
  border: 1px solid rgba(107, 70, 193, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--egg-purple-800, #44337a);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.eg-discussions__response-label {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  padding: 0;
}

.eg-discussions__response-stats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  color: #7c7390;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.eg-discussions__response-pct {
  color: #6b6280;
  font-weight: 600;
}

.eg-discussions__response-sep {
  opacity: 0.55;
}

.eg-discussions__response-count {
  font-variant-numeric: tabular-nums;
}

.eg-discussions__responses-total {
  margin: 0.55rem 0 0;
  color: #8a8296;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
}

.eg-discussions__response-error {
  margin: 0.45rem 0 0;
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}

.eg-discussions__response-btn.is-selected .eg-discussions__response-stats {
  color: #655a7d;
}

.eg-discussions__response-btn.is-selected .eg-discussions__response-pct {
  color: var(--egg-purple-700, #553c9a);
}

.eg-discussions__response-btn:hover:not(:disabled),
.eg-discussions__response-btn:focus-visible:not(:disabled) {
  border-color: rgba(107, 70, 193, 0.45);
  background: rgba(237, 231, 255, 0.85);
}

.eg-discussions__response-btn.is-selected {
  border-color: var(--egg-purple-600, #6b46c1);
  background: rgba(107, 70, 193, 0.12);
  color: var(--egg-purple-900, #322659);
}

.eg-discussions__response-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.eg-community__subhead {
  margin: clamp(2rem, 4vw, 2.75rem) 0 clamp(1.25rem, 3vw, 1.75rem);
}

.eg-community__subtitle {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
}

.eg-weekly-murals-page {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.eg-weekly-murals-page__intro {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.eg-weekly-murals-page__empty {
  margin: 1.5rem 0 0;
  color: var(--text-muted, #6b7280);
  font-size: 0.98rem;
}

.eg-weekly-murals {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.eg-weekly-murals__head {
  margin-bottom: 1.25rem;
}

.eg-weekly-murals__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
}

.eg-weekly-murals__lead {
  margin: 0;
  color: var(--text-muted, #4b5563);
  font-size: 0.98rem;
  line-height: 1.5;
}

.eg-weekly-murals__status {
  margin: 0 0 1rem;
  color: #b45309;
  font-size: 0.92rem;
}

.eg-weekly-murals__list {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.eg-weekly-mural-week {
  display: grid;
  gap: 0.85rem;
}

.eg-weekly-mural-week__head {
  display: grid;
  gap: 0.2rem;
}

.eg-weekly-mural-week__title {
  margin: 0;
  font-family: var(--font-display, "Bakbak One", sans-serif);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  line-height: 1.15;
  color: var(--egg-purple-900, #2d1b4e);
}

.eg-weekly-mural-week__dates {
  margin: 0;
  color: var(--text-muted, #4b5563);
  font-size: 0.95rem;
}

.eg-weekly-mural-week__theme {
  margin: 0.35rem 0 0;
  font-family: var(--font-display, "Bakbak One", sans-serif);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--egg-purple-800, #4c1d95);
  text-wrap: balance;
}

.eg-weekly-mural-week__panels {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.eg-weekly-mural-panel {
  width: 100%;
  min-width: 0;
}

.eg-weekly-mural-panel__figure {
  margin: 0;
}

.eg-weekly-mural-panel__open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.eg-weekly-mural-panel__open:focus-visible {
  outline: 3px solid rgba(109, 40, 217, 0.45);
  outline-offset: 4px;
  border-radius: 12px;
}

.eg-weekly-mural-panel__media {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(107, 70, 193, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(49, 31, 92, 0.07);
}

.eg-weekly-mural-panel__media > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.eg-weekly-mural-panel__meta {
  margin-top: 0.3rem;
}

.eg-weekly-mural-panel__zoom-hint {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 1;
  margin: 0;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  pointer-events: none;
  line-height: 1.2;
}

.eg-weekly-mural-panel__contributors-block {
  margin-top: 0.2rem;
}

.eg-weekly-mural-panel__contributors-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
}

.eg-weekly-mural-contributors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eg-weekly-mural-contributor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  min-width: 0;
  max-width: 7.8rem;
}

.eg-weekly-mural-contributor__egg-shell {
  display: grid;
  place-items: end center;
  width: 7.02rem;
  height: 6.24rem;
}

.eg-weekly-mural-contributor__egg {
  display: block;
  transform-origin: center bottom;
}

.eg-weekly-mural-contributor__egg-shell.is-bobbling {
  animation: eg-weekly-mural-egg-bobble 0.42s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.eg-weekly-mural-contributor__egg.is-bobbling {
  animation: eg-weekly-mural-egg-bobble 0.42s cubic-bezier(0.34, 1.45, 0.64, 1);
}

@keyframes eg-weekly-mural-egg-bobble {
  0%,
  100% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-11px);
  }
  55% {
    transform: translateY(2px);
  }
  75% {
    transform: translateY(-5px);
  }
}

.eg-weekly-mural-contributor__name {
  font-size: 0.874rem;
  text-align: center;
  line-height: 1.1;
  margin-top: -0.1rem;
}

body.eg-weekly-mural-lightbox-open {
  overflow: hidden;
}

.eg-weekly-mural-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.eg-weekly-mural-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(15, 23, 42, 0.72);
  cursor: zoom-out;
}

.eg-weekly-mural-lightbox__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(96vw, 1200px);
  height: min(92vh, 900px);
  margin: 4vh auto 0;
  padding: 0.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
}

.eg-weekly-mural-lightbox__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.eg-weekly-mural-lightbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.15rem 2.5rem 0.55rem 0.15rem;
}

.eg-weekly-mural-lightbox__zoom-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(107, 70, 193, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #4c1d95;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.eg-weekly-mural-lightbox__zoom-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.eg-weekly-mural-lightbox__zoom-label {
  min-width: 3.5rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #4b5563;
}

.eg-weekly-mural-lightbox__viewport {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  border-radius: 12px;
  background: #f8fafc;
  touch-action: none;
}

.eg-weekly-mural-lightbox__stage {
  transform-origin: center center;
  will-change: transform;
  line-height: 0;
}

.eg-weekly-mural-lightbox__img {
  display: block;
  max-width: none;
  max-height: none;
  transform: none;
  user-select: none;
  pointer-events: none;
}

.eg-weekly-mural-lightbox__hint {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: #6b7280;
}

.eg-weekly-mural-lightbox[hidden] {
  display: none !important;
}

.eg-weekly-murals__loader {
  margin-top: 1rem;
  text-align: center;
}

.eg-weekly-murals__sentinel {
  width: 100%;
  height: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .eg-weekly-mural-contributor__egg.is-bobbling,
  .eg-weekly-mural-contributor__egg-shell.is-bobbling {
    animation: none;
  }
}
