/* Shared community shortcut in the original website and game chrome. */
.eko-discord {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 8px;
  border: 3px solid #fff3c5;
  border-radius: 50%;
  background: #5865f2;
  color: #fff !important;
  box-shadow: 0 3px 0 #18384f, inset 0 2px 0 rgba(255, 255, 255, .3);
  text-decoration: none !important;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: filter 120ms ease, transform 120ms ease;
}
.eko-discord svg {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
  pointer-events: none;
}
.eko-discord:hover { filter: brightness(1.12); transform: translateY(-1px); }
.eko-discord:active { transform: translateY(2px); }
.eko-discord:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #18384f, inset 0 2px 0 rgba(255, 255, 255, .3);
}
.top-in > .eko-discord--header {
  position: absolute;
  z-index: 21;
  top: 94px;
  right: 58px;
}
/* Follow the original right-hand HUD column without covering its three icons. */
#mainSWFDIV { position: relative; }
#mainSWFDIV > .eko-discord--game {
  position: absolute;
  z-index: 10;
  top: 28%;
  right: 1%;
  width: clamp(44px, 4.7vw, 60px);
  height: clamp(44px, 4.7vw, 60px);
}
/* The phone sheet sizes every stage child to 100%; keep this control circular. */
html.eko-portrait #mainSWFDIV > .eko-discord--game {
  top: calc(50px + env(safe-area-inset-top, 0px));
  right: calc(10px + env(safe-area-inset-right, 0px));
  width: 44px !important;
  height: 44px !important;
  padding: 7px;
}
@media (min-width: 900px) and (max-width: 1199px) {
  .top-in > .eko-discord--header { top: 18px; right: 252px; }
  html[lang="en"] .top-in > .eko-discord--header { right: 24px; }
}
@media (max-width: 899px) {
  .top-in > .eko-discord--header { top: 18px; right: 14px; width: 44px; height: 44px; }
}
@media (max-width: 339px) {
  .top-in > .site-brand, .top-in > .site-brand .top-logo { width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .eko-discord { transition: none; }
}
