/* Flat Quake silhouette: owner reference, separate from the rules accordions. */
#server-logic .logic-grid > .logic-step {
  position: relative;
}
#server-logic .logic-grid > .logic-step h3 {
  padding-right: 76px;
}
#server-logic .logic-emblem-button {
  position: absolute;
  top: 17px;
  right: 70px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 44px;
  height: 48px;
  padding: 2px;
  margin: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--step-color, #53e5ed);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  perspective: 240px;
}
#server-logic .logic-emblem-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
#server-logic .logic-emblem {
  display: block;
  width: 38px;
  height: 44px;
  background-color: currentColor;
  -webkit-mask: url('/downloads/quake-sigil-flat-20261117.svg') center / contain no-repeat;
  mask: url('/downloads/quake-sigil-flat-20261117.svg') center / contain no-repeat;
  transform-origin: center;
  transform-style: preserve-3d;
  pointer-events: none;
}
@media (max-width: 600px) {
  #server-logic .logic-emblem-button { right: 68px; top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #server-logic .logic-emblem { transform: none !important; }
}

/* Adapt to the actual room beside the wider desktop sidebar. */
#server-logic .logic-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))}
#server-logic .logic-grid>.logic-step h3{overflow-wrap:anywhere}
@media(max-width:680px){#server-logic .logic-grid{grid-template-columns:1fr}}
