﻿/* The First Frame award keeps its central mark without the outer lime ring. */
html:root body :is(
  .first-frame-badge__medal,
  .first-frame-profile__medal,
  .first-frame-medal,
  .contest-applicant__first-frame-medal,
  .medal--first-frame
) {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:root body :is(
  .first-frame-badge__medal,
  .first-frame-profile__medal,
  .first-frame-medal,
  .contest-applicant__first-frame-medal,
  .medal--first-frame
)::before {
  content: none !important;
  display: none !important;
}

/* Match the existing dark-theme specificity without touching other awards. */
html[data-theme="dark"]:root body :is(
  .first-frame-badge__medal,
  .first-frame-profile__medal,
  .first-frame-medal,
  .contest-applicant__first-frame-medal,
  .medal--first-frame
) {
  border-color: transparent !important;
  background: transparent !important;
}

html[data-theme="dark"]:root body :is(
  .first-frame-badge__medal,
  .first-frame-profile__medal,
  .first-frame-medal,
  .contest-applicant__first-frame-medal,
  .medal--first-frame
)::before {
  content: none !important;
  display: none !important;
}

/* Keep the central award legible on both cards and the right-side profile. */
html:root body :is(
  .first-frame-badge__medal .first-frame-badge__inner,
  .first-frame-profile__medal > span,
  .first-frame-medal > span,
  .contest-applicant__first-frame-medal > span,
  .medal--first-frame .medal-inner
) {
  background: #d5ff6b !important;
  color: #142017 !important;
}

html[data-theme="dark"]:root body :is(
  .first-frame-badge__medal .first-frame-badge__inner,
  .first-frame-profile__medal > span,
  .first-frame-medal > span,
  .contest-applicant__first-frame-medal > span,
  .medal--first-frame .medal-inner
) {
  background: #d5ff6b !important;
  color: #142017 !important;
}

html:root body :is(
  .first-frame-badge__medal,
  .first-frame-profile__medal,
  .first-frame-medal,
  .contest-applicant__first-frame-medal,
  .medal--first-frame
) :is(svg, path, rect) {
  color: #142017 !important;
  stroke: #142017 !important;
}

html[data-theme="dark"]:root body :is(
  .first-frame-badge__medal,
  .first-frame-profile__medal,
  .first-frame-medal,
  .contest-applicant__first-frame-medal,
  .medal--first-frame
) :is(svg, path, rect) {
  color: #142017 !important;
  stroke: #142017 !important;
}

/* Внутреннее тёмное кольцо «Первого кадра»: с отступом от края, как в каталоге наград */
html:root body :is(
  .first-frame-badge__inner,
  .contest-applicant__first-frame-medal > span,
  .first-frame-profile__medal > span,
  .first-frame-medal > span
) {
  position: relative !important;
}

html:root body :is(
  .first-frame-badge__inner,
  .contest-applicant__first-frame-medal > span
)::after {
  content: "" !important;
  position: absolute !important;
  inset: 1px !important;
  border: 1px solid #142017 !important;
  border-radius: 50% !important;
  pointer-events: none !important;
}

html:root body :is(
  .first-frame-profile__medal > span,
  .first-frame-medal > span
)::after {
  content: "" !important;
  position: absolute !important;
  inset: 2px !important;
  border: 1.5px solid #142017 !important;
  border-radius: 50% !important;
  pointer-events: none !important;
}


/* Unified icon size for first-frame badges */
html:root body :is(
  .first-frame-badge__inner svg,
  .first-frame-profile__medal > span svg,
  .first-frame-medal > span svg,
  .contest-applicant__first-frame-medal > span svg
) {
  width: 54% !important;
  height: 54% !important;
}

