.guild-operation {
  --go-parchment: #fff1ca;
  --go-edge: #7f542f;
  --go-ink: #684423;
  --go-green: #4b6e52;
  --go-red: #9b472f;
  --go-brass: #e6b967;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.guild-operation svg { width: 100%; height: 100%; overflow: visible; }
.guild-operation svg * { stroke-linecap: round; stroke-linejoin: round; }
.go-paper { fill: var(--go-parchment); stroke: var(--go-edge); stroke-width: 1.4; }
.go-ink { fill: none; stroke: var(--go-ink); stroke-width: 1.6; }
.go-rust { fill: none; stroke: var(--go-red); stroke-width: 1.8; }
.go-gold { fill: var(--go-brass); stroke: var(--go-edge); stroke-width: 1.4; }
.go-success { fill: var(--go-green); stroke: #334a36; stroke-width: 1.4; }
.go-check { fill: none; stroke: #fff2c6; stroke-width: 1.5; }
.go-shine { fill: none; stroke: #a56b27; stroke-width: 1.8; }
.go-ground { fill: var(--go-edge); opacity: .13; }
.go-link { opacity: .62; }
.go-handoff, .go-doorline { stroke-dasharray: 3 3; opacity: .66; }

.guild-operation:not([data-still="true"]) {
  .go-coin { animation: go-coin 570ms cubic-bezier(.22,.65,.25,1) both; }
  .go-receipt { transform-box: fill-box; transform-origin: center; animation: go-stamp 320ms 230ms ease-out both; }
  .go-link .go-rust { stroke-dasharray: 34; animation: go-draw 240ms 120ms ease-out both; }
  .go-lock-bar { animation: go-lock 350ms 190ms ease-out both; }
  .go-message { animation: go-message 340ms var(--delay) ease-out both; }
  .go-wave { transform-origin: 36px 37px; animation: go-wave 600ms ease-out both; }
  .go-note { animation: go-note 300ms var(--delay) ease-out both; }
  .go-hand { transform-origin: 32px 34px; animation: go-clock 550ms ease-out both; }
  .go-baton { animation: go-baton 600ms ease-out both; }
  .go-flag { transform-origin: 99px 54px; animation: go-flag 330ms 300ms ease-out both; }
  .go-door { transform-origin: 107px 34px; animation: go-door 540ms ease-in-out both; }
  .go-shine { animation: go-light 320ms 300ms ease-out both; }
}

@keyframes go-coin {
  0% { transform: translate(16px, -29px) rotate(36deg); opacity: 0; }
  65% { transform: translate(0, 3px); opacity: 1; }
  84% { transform: translate(0, -4px); }
}
@keyframes go-stamp {
  0% { opacity: 0; transform: scale(1.7); }
  72% { opacity: 1; transform: scale(.88); }
}
@keyframes go-draw { from { stroke-dashoffset: 34; } }
@keyframes go-lock {
  0%, 20% { transform: translate(-2px, -4px) rotate(-12deg); transform-origin: 80px 34px; }
  75% { transform: translateY(1px); }
}
@keyframes go-message {
  from { transform: translate(var(--arrival), -11px); opacity: 0; }
  75% { transform: translateY(2px); opacity: 1; }
}
@keyframes go-wave {
  0% { transform: scaleY(1.1); }
  20% { transform: scaleY(.35); }
  40% { transform: scaleY(1.14); }
  70% { transform: scaleY(.52); }
}
@keyframes go-note {
  from { transform: translateX(-9px); opacity: 0; }
}
@keyframes go-clock { from { transform: rotate(-290deg); } }
@keyframes go-baton {
  from { transform: translate(-44px, 13px); opacity: .4; }
  47% { transform: translate(-27px, 24px); opacity: 1; }
  75% { transform: translate(-10px, 10px); }
}
@keyframes go-flag {
  from { transform: scaleY(.38); opacity: 0; }
  80% { transform: scaleY(1.06); opacity: 1; }
}
@keyframes go-door {
  from { transform: scaleX(2.1); }
}
@keyframes go-light { from { opacity: 0; } }

.guild-motion[data-pace="quick"] .guild-operation svg * { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .guild-operation svg * { animation: none !important; }
}
