/* Forged game controls. Load after the page styles; no markup changes required. */
.button.button {
  --control-face: #15181a;
  --control-light: #454139;
  --control-ember: 174, 81, 43;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 16px 32px;
  border: 0;
  border-radius: 0;
  color: #e9ddc6;
  background:
    linear-gradient(166deg, #ffffff07 0 29%, transparent 30% 69%, #00000028 70%),
    radial-gradient(ellipse at 50% 0, #8d7c492a, transparent 69%),
    linear-gradient(180deg, var(--control-light), var(--control-face) 24%, #0b0d10 100%);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  box-shadow: inset 0 2px 6px #000b, inset 0 -2px 9px #000c;
  font-family: inherit;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 2px 2px #000, 0 0 12px #080604;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transform: translateY(0);
  transition: color 180ms ease, box-shadow 240ms ease, filter 240ms ease, transform 130ms ease;
}
.button.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border: 18px solid transparent;
  border-left-width: 28px;
  border-right-width: 28px;
  border-image: url("assets/control-frame.svg") 18 28 / 18px 28px / 0 stretch;
  opacity: .88;
  transition: opacity 220ms ease, filter 220ms ease;
}
.button.button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 43%, #ead9a518 47%, #fff0ca91 49%, #fff7e3ba 50%, #e7b26421 53%, transparent 58%) 190% 0 / 280% 100% no-repeat;
  mix-blend-mode: screen;
  opacity: 0;
}
.button.button > .button-label {
  position: relative;
  z-index: 1;
}
.button.button.primary,
[data-theme] .button.button.primary {
  --control-face: #4b111d;
  --control-light: #8c3a3c;
  --control-ember: 224, 55, 38;
  color: #ffebc9;
  background:
    linear-gradient(164deg, #ffd3a111 0 30%, transparent 31% 68%, #11071058 69%),
    radial-gradient(ellipse at 50% 45%, #df50432b, transparent 74%),
    radial-gradient(ellipse at 50% -40%, #ed8b5166, transparent 68%),
    linear-gradient(180deg, #963e42 0%, #752333 22%, #591524 61%, #300b18 100%);
  box-shadow: inset 0 0 0 6px #10070b, inset 0 0 18px #d13c302f, inset 0 -8px 18px #18040dd9;
  text-shadow: 0 2px 2px #140208, 0 0 16px #ffb86730;
}
.button.button.primary::before {
  animation: rol-forge-breath 4.8s ease-in-out infinite;
}
.button.button.large {
  min-height: 66px;
  min-width: 228px;
  padding: 21px 45px;
  font-size: 13px;
  letter-spacing: .17em;
}
.button.button.quiet {
  background: linear-gradient(180deg, #282727db, #0c1015f0 32%, #090c10f5);
  color: #c6bda9;
}
.button.button:hover,
.button.button:focus-visible {
  color: #fff2d8;
  box-shadow: inset 0 0 0 6px #0a0808, inset 0 0 23px rgba(var(--control-ember), .25), inset 0 -4px 8px #000a;
  filter: drop-shadow(0 0 7px rgba(var(--control-ember), .27));
}
.button.button:hover::before,
.button.button:focus-visible::before {
  opacity: 1;
  filter: brightness(1.22);
  animation: none;
}
.button.button:hover::after,
.button.button:focus-visible::after {
  animation: rol-metal-glint 950ms cubic-bezier(.2, .55, .35, 1) both;
}
.button.button.primary:hover,
.button.button.primary:focus-visible,
[data-theme] .button.button.primary:hover {
  background:
    linear-gradient(164deg, #ffd3a119 0 30%, transparent 31% 68%, #1107104d 69%),
    radial-gradient(ellipse at 50% 45%, #ff725442, transparent 74%),
    radial-gradient(ellipse at 50% -30%, #f58b5575, transparent 72%),
    linear-gradient(180deg, #ba5146 0%, #a6313e 22%, #7c1c2e 61%, #420c1c 100%);
  box-shadow: inset 0 0 0 6px #17090c, inset 0 0 30px #f4634262, inset 0 -7px 17px #24050dc9;
  filter: drop-shadow(0 0 9px #ce3c3c7a);
  color: #fff5de;
}
.button.button:focus-visible {
  outline: 2px solid #f4da9b;
  outline-offset: -7px;
}
.button.button:active,
.button.button.primary:active,
[data-theme] .button.button.primary:active {
  transform: translateY(2px) scale(.985);
  filter: brightness(.92);
  box-shadow: inset 0 4px 19px #000e, inset 0 0 0 7px #09080b;
  transition-duration: 60ms;
}
.button.button:active::before {
  filter: brightness(.87);
}
.button.button:disabled,
.button.button[aria-disabled="true"] {
  opacity: .43;
  filter: grayscale(.7);
  cursor: default;
  pointer-events: none;
  transform: none;
}
.button.button:disabled::before,
.button.button[aria-disabled="true"]::before,
.button.button:disabled::after,
.button.button[aria-disabled="true"]::after {
  animation: none;
}
.auction-row .button.button {
  min-width: 0;
  min-height: 40px;
  padding: 12px;
  font-size: 9px;
  letter-spacing: .04em;
}
.auction-row .button.button::before {
  border-image-width: 13px 22px;
}
@media (max-width: 680px) {
  .login-button.button.button {
    min-width: 0;
    padding-inline: 14px;
    font-size: 9px;
    letter-spacing: .055em;
  }
}
@keyframes rol-metal-glint {
  0% { background-position: 190% 0; opacity: 0; }
  13% { opacity: .7; }
  74% { opacity: .55; }
  100% { background-position: -90% 0; opacity: 0; }
}
@keyframes rol-forge-breath {
  0%, 100% { opacity: .86; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.17) drop-shadow(0 0 2px #dc633c64); }
}
@media (hover: none) {
  .button.button:hover::after { animation: none; opacity: 0; }
  .button.button { min-height: 48px; }
  .button.button.large { min-height: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .button.button,
  .button.button::before,
  .button.button::after { animation: none !important; transition: none !important; }
  .button.button::after { display: none; }
  .button.button:active { transform: none; }
}
