/* The archive supplies opaque square renders, including coral field/shadows.
   Preserve the native stage, menu, descriptions, figure transition and grid. */
.tabPanel[data-ym-mechanics] .item-asset .asset-bg {
  display: none;
}
.tabPanel[data-ym-mechanics] .item-asset .figure,
.tabPanel[data-ym-mechanics] .item-asset .picture {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.tabPanel[data-ym-mechanics] .item-asset .picture {
  container-type: size;
}
.tabPanel[data-ym-mechanics] .item-asset .ym-mechanics-image {
  display: block;
  position: static;
  /* Match the element to the fitted square bitmap, not its letterboxed stage,
     so the edge fade follows the image at every viewport size. */
  width: min(100cqw, 100cqh, 1254px);
  height: min(100cqw, 100cqh, 1254px);
  min-width: 0;
  min-height: 0;
  max-width: 1254px;
  max-height: 1254px;
  margin: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  /* Only the empty perimeter dissolves into the real section background.
     Keep the coral field (starting near 6%) and metal geometry fully opaque. */
  --ym-mechanics-edge-mask:
    linear-gradient(to right, transparent, rgb(0 0 0 / .15) 2%,
      rgb(0 0 0 / .5) 4%, rgb(0 0 0 / .85) 6%, #000 8%,
      #000 92%, rgb(0 0 0 / .85) 94%, rgb(0 0 0 / .5) 96%,
      rgb(0 0 0 / .15) 98%, transparent),
    linear-gradient(to bottom, transparent, rgb(0 0 0 / .15) 1%,
      rgb(0 0 0 / .5) 2.5%, rgb(0 0 0 / .85) 4%, #000 5%,
      #000 90%, rgb(0 0 0 / .85) 92.5%, rgb(0 0 0 / .5) 95%,
      rgb(0 0 0 / .15) 97.5%, transparent);
  -webkit-mask-image: var(--ym-mechanics-edge-mask);
  mask-image: var(--ym-mechanics-edge-mask);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  mask-repeat: no-repeat;
}
.tabPanel[data-ym-mechanics] .tabPanel-button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}
/* The original horizontal labels assume short English names. Keep the same
   three buttons and typeface while allowing whole Russian words to fit. */
@media (max-width: 1279px) {
  .tabPanel[data-ym-mechanics] .tabPanel-controls .controls-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr .85fr;
    align-items: center;
    gap: 12px;
  }
  .tabPanel[data-ym-mechanics] .tabPanel-controls .tabPanel-button {
    min-width: 0;
    padding-left: 12px;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    transform: none;
  }
  .tabPanel[data-ym-mechanics] .tabPanel-controls .tabPanel-button:is(.is-active, :hover) {
    transform: none;
  }
  .tabPanel[data-ym-mechanics] .tabPanel-controls .tabPanel-button::before {
    left: 0;
    width: 6px;
    height: 6px;
    margin-top: -3px;
  }
  .tabPanel[data-ym-mechanics] .tabPanel-title {
    width: 100%;
    padding: 0 16px;
  }
  .tabPanel[data-ym-mechanics] .tabPanel-title .title-text {
    font-size: clamp(40px, calc(13vw - 39px), 80px);
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.05;
  }
  .tabPanel[data-ym-mechanics] .title-text [class^="word-"] {
    white-space: nowrap;
  }
}
@media (max-width: 749px) {
  .tabPanel[data-ym-mechanics] .tabPanel-title .title-text {
    font-size: clamp(36px, 13vw, 80px);
  }
}
