.narralogue-button-frame {
  --narralogue-button-frame-padding: 1px;
  --narralogue-button-width: min(144px, 38vw);
  --narralogue-button-height: 44px;
  --narralogue-button-font-size: clamp(17px, 1.24vw, 20px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--narralogue-button-frame-padding);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    #d5bc88 0%,
    #b88c4b 20%,
    #8b6837 50%,
    #b88c4b 80%,
    #e4c995 100%
  );
  box-shadow:
    0 18px 24px rgba(0, 0, 0, 0.52),
    0 3px 12px rgba(222, 177, 92, 0.18),
    inset 0 2px 2px rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.25s ease;
}

.narralogue-button-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--narralogue-button-width);
  height: var(--narralogue-button-height);
  padding: 0 18px;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 999px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: var(--narralogue-button-font-size);
  color: #f5ebcf;
  line-height: 1;
  text-decoration: none;
  background: linear-gradient(
    180deg,
    #18483a 0%,
    #12362c 35%,
    #0d271f 100%
  );
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    inset 0 -8px 12px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    opacity 0.18s ease;
}

.narralogue-button-inner::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 8px;
  height: 40%;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.narralogue-button-frame:hover,
.narralogue-button-frame:focus-within {
  box-shadow:
    0 22px 34px rgba(0, 0, 0, 0.58),
    0 0 18px rgba(224, 183, 103, 0.26),
    0 4px 14px rgba(222, 177, 92, 0.2),
    inset 0 2px 2px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.35);
}

.narralogue-button-inner:hover,
.narralogue-button-inner:focus-visible {
  background: linear-gradient(
    180deg,
    #1d5545 0%,
    #154235 40%,
    #103027 100%
  );
}

.narralogue-button-inner:focus-visible {
  outline: 1px solid rgba(245, 235, 207, 0.72);
  outline-offset: -6px;
}

.narralogue-button-inner:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.55);
}

.narralogue-button-inner:disabled,
.narralogue-button-inner[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .narralogue-button-frame,
  .narralogue-button-inner {
    transition: none;
  }
}
